Skip to content

Commit

Permalink
Add forge install to test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jferas committed Sep 26, 2024
1 parent 6e2a4e5 commit 44f08ed
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- main

env:
FOUNDRY_PROFILE: ci
RPC_URL: ${{ secrets.RPC_URL }}

jobs:
Expand All @@ -23,6 +24,19 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm 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
- name: Run Tests
run: npm test
coverage:
Expand All @@ -36,6 +50,15 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm 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 Coverage
run: npm run coverage
- name: Coveralls GitHub Action
Expand All @@ -51,6 +74,15 @@ jobs:
cache: 'npm'
- name: Install Dependencies
run: npm 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: build source
run: npm run build
- name: Run Lint
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ artifacts
cache
coverage*
contracts*
typechain-types
typechain-types
out
lib

0 comments on commit 44f08ed

Please sign in to comment.