Skip to content

feat: foundry and devcontainer #6

feat: foundry and devcontainer

feat: foundry and devcontainer #6

Workflow file for this run

name: Gas
on:
pull_request:
branches:
- main
paths:
- '**.sol'
- '**.yml'
push:
branches:
- main
paths:
- '**.sol'
- '**.yml'
env:
FOUNDRY_PROFILE: ci
jobs:
gas:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
- id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- run: yarn --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Check gas snapshots
run: forge snapshot --check