Skip to content

Commit

Permalink
evm: fix ci to use secret
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Jan 15, 2024
1 parent 2fe448c commit f40b4d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
uses: "foundry-rs/foundry-toolchain@v1"

- name: "Run the tests"
run: "cd evm && make test"
env:
CI_FORK_RPC: ${{ secrets.POLYGON_MUMBAI_RPC }}
run: "cd evm && make ci"

- name: "Add test summary"
run: |
Expand Down
6 changes: 5 additions & 1 deletion evm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include env/testing.env

.PHONY: dependencies test clean all
.PHONY: dependencies test clean all ci

all: build

Expand Down Expand Up @@ -28,6 +28,10 @@ build: dependencies
test: dependencies
forge test --fork-url ${TESTING_FORK_RPC} -vv

.PHONY: ci
ci: dependencies
forge test --fork-url ${CI_FORK_RPC} -vv --fail-fast

.PHONY: gas-report
gas-report: dependencies
forge test --fork-url ${TESTING_FORK_RPC} --match-path forge/tests/gas/* --fuzz-runs 512 --gas-report
Expand Down

0 comments on commit f40b4d0

Please sign in to comment.