Skip to content

Commit

Permalink
chore: foundry CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lekhovitsky committed Nov 20, 2023
1 parent 576e706 commit 1a6a7d1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Foundry project

on:
pull_request:
types: [opened, reopened, synchronize]

env:
CI: true
FORK_RPC_URL: ${{ secrets.MAINNET_TESTS_FORK }}
TIMELOCK_ADDRESS: 0xa133C9A92Fb8dDB962Af1cbae58b2723A0bdf23b

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup node.js
uses: actions/setup-node@v3
with:
cache: "yarn"
node-version-file: ".nvmrc"

- name: Install dependencies
run: yarn install --frozen-lockfile

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

- name: Build project
run: forge b --sizes

- name: Run tests
run: forge test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16

0 comments on commit 1a6a7d1

Please sign in to comment.