Commit 5dcab86f authored by refcell.eth's avatar refcell.eth Committed by GitHub

chore: clean up makefiles across the monorepo (#8862)

parent cff8fa7e
...@@ -29,8 +29,8 @@ alphabet-actors: ...@@ -29,8 +29,8 @@ alphabet-actors:
./scripts/alphabet/charlie.sh 'charlie' ./scripts/alphabet/charlie.sh 'charlie'
.PHONY: \ .PHONY: \
clean \
op-challenger \ op-challenger \
clean \
test \ test \
visualize \ visualize \
alphabet \ alphabet \
......
...@@ -20,7 +20,7 @@ generate-mocks: ...@@ -20,7 +20,7 @@ generate-mocks:
go generate ./... go generate ./...
.PHONY: \ .PHONY: \
clean \
op-conductor \ op-conductor \
clean \
test \ test \
generate-mocks generate-mocks
...@@ -19,5 +19,4 @@ test: ...@@ -19,5 +19,4 @@ test:
.PHONY: \ .PHONY: \
clean \ clean \
op-heartbeat \ op-heartbeat \
test \ test
lint
...@@ -38,6 +38,4 @@ generate-mocks: ...@@ -38,6 +38,4 @@ generate-mocks:
op-node \ op-node \
clean \ clean \
test \ test \
lint \ fuzz
fuzz \
generate-mocks
...@@ -50,6 +50,12 @@ run-goerli-verify: op-program-host op-program-client ...@@ -50,6 +50,12 @@ run-goerli-verify: op-program-host op-program-client
.PHONY: \ .PHONY: \
op-program \ op-program \
op-program-host \
op-program-client \
op-program-client-mips \
clean \ clean \
test \ test \
lint verify-goerli \
capture-goerli-verify \
capture-chain-test-data \
run-goerli-verify
...@@ -25,15 +25,6 @@ To run op-program unit tests, from within the `op-program` directory run: ...@@ -25,15 +25,6 @@ To run op-program unit tests, from within the `op-program` directory run:
make test make test
``` ```
## Lint
To run the linter, from within the `op-program` directory run:
```shell
make lint
```
This requires having `golangci-lint` installed.
## Running ## Running
From within the `op-program` directory, options can be reviewed with: From within the `op-program` directory, options can be reviewed with:
......
...@@ -19,5 +19,4 @@ test: ...@@ -19,5 +19,4 @@ test:
.PHONY: \ .PHONY: \
clean \ clean \
op-proposer \ op-proposer \
test \ test
lint
...@@ -4,14 +4,13 @@ test: ...@@ -4,14 +4,13 @@ test:
generate-mocks: generate-mocks:
go generate ./... go generate ./...
.PHONY: \
test \
lint \
generate-mocks \
fuzz
fuzz: fuzz:
go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadUnmarshal ./eth go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadUnmarshal ./eth
go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadMarshalUnmarshalV1 ./eth go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadMarshalUnmarshalV1 ./eth
go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadMarshalUnmarshalV2 ./eth go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzExecutionPayloadMarshalUnmarshalV2 ./eth
go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzOBP01 ./eth go test -run NOTAREALTEST -v -fuzztime 10s -fuzz FuzzOBP01 ./eth
.PHONY: \
test \
generate-mocks \
fuzz
...@@ -18,7 +18,7 @@ test: ...@@ -18,7 +18,7 @@ test:
lint: lint:
go vet ./... go vet ./...
.PHONY: test .PHONY: lint
tls: tls:
kubectl get secrets op-ufm-client-tls -o yaml | yq '.data."tls.key"' | base64 --decode > tls/tls.key kubectl get secrets op-ufm-client-tls -o yaml | yq '.data."tls.key"' | base64 --decode > tls/tls.key
......
...@@ -9,3 +9,6 @@ LDFLAGS := -ldflags "$(LDFLAGSSTRING)" ...@@ -9,3 +9,6 @@ LDFLAGS := -ldflags "$(LDFLAGSSTRING)"
op-wheel: op-wheel:
env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/op-wheel ./cmd env GO111MODULE=on GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) go build -v $(LDFLAGS) -o ./bin/op-wheel ./cmd
.PHONY: \
op-wheel
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment