Skip to content

Commit

Permalink
chore: add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Jun 21, 2024
1 parent 63a2739 commit dbdb448
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
name: CI
name: test
on:
push:
branches:
- master
branches: [master]
pull_request:

env:
FOUNDRY_PROFILE: ci

jobs:
run-ci:
yarn-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

- name: 'Enable corepack'
run: corepack enable

- name: Install Foundry
- name: 'Install Foundry'
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install deps
run: forge install
- name: 'Setup Node.js'
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

- name: 'Install'
run: yarn install

- name: 'Build'
run: yarn build

- name: Check gas snapshots
run: forge snapshot --check
- name: 'Lint'
run: yarn lint

- name: Run tests
run: forge test
- name: 'Test'
run: yarn test

0 comments on commit dbdb448

Please sign in to comment.