-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes forge coverage and updates versions used for running tests
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
@@ -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 |