-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 940 Bytes
/
tests.yaml
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
name: Tests
on:
push:
paths:
- contracts/**/*
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Check formatting
working-directory: contracts
run: forge fmt --check
- name: Install dependencies
working-directory: contracts
run: forge install
- name: Check contract sizes
working-directory: contracts
run: forge build --sizes
- name: Run tests
working-directory: contracts
run: forge test
env:
# Only fuzz intensely if we're running this action on a push to main or for a PR going into main:
FOUNDRY_PROFILE: ${{ (github.ref == 'refs/heads/main' || github.base_ref == 'main') && 'intense' }}
MAINET_RPC_URL: ${{ secrets.MAINET_RPC_URL }}