-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (40 loc) · 1.32 KB
/
ci.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
46
47
48
name: ci
on: [push]
jobs:
tests:
name: Forge Testing
runs-on: ubuntu-latest
strategy:
matrix:
profile: [via-ir,min-solc,min-solc-via-ir,intense,solc-past-versions-0,solc-past-versions-1]
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install Dependencies
run: forge install
- name: Run Lint Check
run: forge fmt --check
- name: Run Tests with ${{ matrix.profile }}
run: >
( [ "${{ matrix.profile }}" = "solc-past-versions-0" ] &&
forge test --use 0.8.5 &&
forge test --use 0.8.6 &&
forge test --use 0.8.7 &&
forge test --use 0.8.8 &&
forge test --use 0.8.9 &&
forge test --use 0.8.10 &&
forge test --use 0.8.11
) ||
( [ "${{ matrix.profile }}" = "solc-past-versions-1" ] &&
forge test --use 0.8.12 &&
forge test --use 0.8.13 &&
forge test --use 0.8.14 &&
forge test --use 0.8.15 &&
forge test --use 0.8.16 &&
forge test --use 0.8.17 &&
forge test --use 0.8.18
) ||
FOUNDRY_PROFILE=${{ matrix.profile }} forge test