generated from FrankieIsLost/forge-template
-
Notifications
You must be signed in to change notification settings - Fork 54
36 lines (27 loc) · 895 Bytes
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install dev dependencies
run: npm install
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Run lint check
run: npm run lint:check
- name: Install dependencies
run: forge install
- name: Check contract sizes
run: forge build --sizes
- name: Check gas snapshots
run: forge snapshot --check
- name: Run tests
run: forge test
env:
# Only fuzz intensely if we're running this action on a push to master or for a PR going into master:
FOUNDRY_PROFILE: ${{ (github.ref == 'refs/heads/master' || github.base_ref == 'master') && 'intense' }}