shove fast #1777
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
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- run: npm ci && npm test | |
test-contract: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- run: | | |
forge test -vvv --fork-url "https://base-sepolia.publicnode.com" | |
forge coverage --report lcov --fork-url "https://base-sepolia.publicnode.com" | |
git diff --exit-code | |
working-directory: ./packages/contract | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- run: | | |
npm ci | |
npm run lint && npm run codegen | |
# Re-enable once Wagmi fixes their bug: git diff --exit-code | |
# https://github.com/wevm/wagmi/issues/2528 |