Skip to content

Commit

Permalink
solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJepsen committed Oct 23, 2023
1 parent ea4fde0 commit cb90b17
Showing 1 changed file with 12 additions and 31 deletions.
43 changes: 12 additions & 31 deletions .github/workflows/solidity.yaml
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

0 comments on commit cb90b17

Please sign in to comment.