Skip to content

🥑 ci

🥑 ci #10

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
env:
FOUNDRY_PROFILE: ci
jobs:
run-ci-hardhat:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: pnpm install
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test
run-ci-foundry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
run: forge install
- name: Check gas snapshots
run: forge snapshot --check
- name: Run tests
run: forge test