From 087864f4a8216955002d639555f1bb36494d2c8f Mon Sep 17 00:00:00 2001 From: wcgcyx Date: Wed, 21 Feb 2024 14:06:32 +1000 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eba27536..dfefbb8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 \ No newline at end of file