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 262497a
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
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

- 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
steps:
- 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: 'Lint'
run: yarn lint
- name: 'Test'
run: yarn test

0 comments on commit 262497a

Please sign in to comment.