Skip to content

Commit

Permalink
removes forge coverage and updates versions used for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Sep 3, 2024
1 parent 0edaeca commit 25a0ba1
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/forge.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Forge
name: Run Unit Tests
on:
push:
pull_request:
types: [opened, synchronize, reopened]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
run-unit-tests:
if: ${{ github.event.pull_request.draft == false }} # will only run once the PR is in "Ready for Review" state
runs-on: ubuntu-latest
env:
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}
Expand All @@ -18,28 +20,29 @@ jobs:
FORK_NUMBER: ${{ secrets.FORK_NUMBER }}
POLYGON_FORK_NUMBER: ${{ secrets.POLYGON_FORK_NUMBER }}
FORK_NUMBER_POLYGON: 36004499

steps:
- uses: actions/[email protected].1
- uses: actions/[email protected].7
with:
submodules: recursive

- uses: actions/[email protected]
with:
node-version: 20

- name: Install dev dependencies
run: yarn install

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

- name: Install Deps
run: forge install
- name: Run forge tests
uses: Wandalen/wretry.action@v1.3.0
uses: Wandalen/wretry.action@v3.5.0
with:
command: forge test
attempt_limit: 10
attempt_delay: 5000
- name: Get forge test coverage
run: forge coverage
attempt_delay: 10000

0 comments on commit 25a0ba1

Please sign in to comment.