Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 21, 2024
1 parent 8081872 commit 087864f
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
with:
submodules: recursive

- name: Set Node.js 18.18.x
uses: actions/setup-node@v3
with:
node-version: 18.18.x

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -35,12 +40,38 @@ jobs:
forge build --sizes
id: build

- name: Run unit and integration tests
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Run build
uses: borales/actions-yarn@v4
with:
cmd: build

- name: Run Unit Tests
run: |
forge test --no-match-path "test/fork/**" -vvv
id: unit_integration_test
forge test --match-path "test/unit/**" -vvv
id: unit_test

- name: Run Integration Tests
run: |
forge test --match-path "test/integration/**" -vvv
id: integration_test

- name: Run Fuzz Tests
run: |
forge test --match-path "test/fuzz/**" -vvv
id: fuzz_test

- name: Run Fork Tests
run: |
forge test --match-path "test/fork/**" -vvvvv
id: fork_test

- name: Run Invariant Tests
run: |
yarn local:threechains
forge test --match-path "test/invariant/**" -vvvvv
id: invariant_test

0 comments on commit 087864f

Please sign in to comment.