Skip to content

Commit

Permalink
ci(ci.yml): foundry testing added EVM-216
Browse files Browse the repository at this point in the history
  • Loading branch information
benceharomi committed Sep 18, 2023
1 parent be3593d commit df9bfb0
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
ethereum/cache
ethereum/typechain
test:
test-hardhat:
needs: [build, lint]
runs-on: ubuntu-latest

Expand Down Expand Up @@ -103,3 +103,46 @@ jobs:
- name: Run tests
run: yarn test --no-compile

test-foundry:
needs: [build, lint]
runs-on: ubuntu-latest

defaults:
run:
working-directory: ethereum

steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
submodules: "recursive"

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.15.1
cache: yarn
cache-dependency-path: ethereum/yarn.lock

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: yarn install

- name: Restore artifacts cache
uses: actions/cache/restore@v3
with:
fail-on-cache-miss: true
key: artifacts-${{ github.sha }}
path: |
ethereum/artifacts
ethereum/cache
ethereum/typechain
- name: Run tests
run: forge test

0 comments on commit df9bfb0

Please sign in to comment.