-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
31 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,40 +1,21 @@ | ||
name: Solidity | ||
|
||
on: [push] | ||
|
||
name: Solidity | ||
|
||
jobs: | ||
install: | ||
name: install forge | ||
check: | ||
name: Foundry project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: dependencies | ||
run: forge install | ||
tests: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
needs: install | ||
steps: | ||
- name: tests | ||
run: forge test | ||
|
||
snapshot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: dependencies | ||
run: forge install | ||
- name: check contract sizes | ||
run: forge build --sizes | ||
- name: check gas snapshots | ||
run: forge snapshot --check | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Run tests | ||
run: forge test -vvv | ||
|
||
- name: Run snapshot | ||
run: forge snapshot |