-
Notifications
You must be signed in to change notification settings - Fork 213
45 lines (38 loc) · 1.07 KB
/
ci-ethereum-contract.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
pull_request:
paths:
- target_chains/ethereum/contracts/**
- governance/xc_admin/packages/xc_admin_common/**
push:
branches:
- main
paths:
- target_chains/ethereum/contracts/**
- governance/xc_admin/packages/xc_admin_common/**
name: Ethereum Contract
jobs:
check:
name: Foundry tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: target_chains/ethereum/contracts/
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Install Foundry
uses: foundry-rs/[email protected]
with:
version: nightly
- name: Install Forge dependencies
run: pnpm run install-forge-deps
- name: Run tests
run: forge test -vvv --deny-warnings
- name: Run snapshot
run: NO_COLOR=1 forge snapshot --match-contract GasBenchmark >> $GITHUB_STEP_SUMMARY