45 lines
1000 B
YAML
45 lines
1000 B
YAML
name: EVM Foundry Continuous Integration
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
name: Foundry
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RPC_URL: ${{ secrets.ETH_RPC_URL }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '18'
|
|
cache: 'yarn'
|
|
cache-dependency-path: 'foundry/yarn.lock'
|
|
|
|
- name: Install Dependencies
|
|
working-directory: foundry
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Install Foundry
|
|
uses: foundry-rs/foundry-toolchain@v1
|
|
|
|
- name: Check formatting
|
|
run: forge fmt --check
|
|
working-directory: foundry
|
|
|
|
- name: Run tests
|
|
run: forge test -vvv
|
|
working-directory: foundry
|
|
|
|
- name: Run snapshot
|
|
run: NO_COLOR=1 forge snapshot >> $GITHUB_STEP_SUMMARY
|
|
working-directory: foundry
|