Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
include potential forge tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simonDos committed Feb 1, 2024
1 parent 1c534dd commit 1ac2a7d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,42 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install npm dependencies
run: npm install

- name: Process templates
run: npm run template:process
- name: Run tests

- name: Run Coverage and Hardhat tests
run: npm run test:ci

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv
id: test
1 change: 0 additions & 1 deletion scripts/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ start_blockchain
export LOCAL_NETWORK=true
npm run coverage "$@"
npm run test:hardhat "$@"
npm run test:foundry "$@"

fi

Expand Down

0 comments on commit 1ac2a7d

Please sign in to comment.