@@ -20,23 +20,20 @@ jobs:
2020 runs-on : ubuntu-latest
2121 steps :
2222 - uses : actions/checkout@v5
23- - uses : extractions/setup-just@v3
24- - uses : foundry-rs/foundry-toolchain@v1
23+ - uses : sablier-labs/devkit/actions/setup@main
2524 with :
26- version : " nightly"
27- - uses : oven-sh/setup-bun@v2
28- - run : npm install -g @antfu/ni
29- - run : bun install
25+ frozen-lockfile : false
26+ package-manager : bun
3027
3128 - name : Run all code checks
3229 run : just full-check
3330
34- # - name: Build all packages
35- # run: just build-all
36-
3731 test-unit :
3832 needs : check
3933 runs-on : ubuntu-latest
34+ strategy :
35+ matrix :
36+ workspace : [airdrops, lockup]
4037 steps :
4138 - uses : actions/checkout@v5
4239 - uses : foundry-rs/foundry-toolchain@v1
@@ -45,18 +42,25 @@ jobs:
4542 - uses : oven-sh/setup-bun@v2
4643 - run : bun install
4744
45+ - name : Build contracts
46+ run : |
47+ just build ${{ matrix.workspace }} optimized
48+
4849 - name : Run unit tests
4950 env :
5051 FOUNDRY_FUZZ_RUNS : 2000
5152 FOUNDRY_PROFILE : test-optimized
5253 run : | # shell
5354 forge test \
5455 --match-path "tests/unit/**/*.sol" \
55- --root lockup
56+ --root ${{ matrix.workspace }}
5657
5758 test-integration :
5859 needs : check
5960 runs-on : ubuntu-latest
61+ strategy :
62+ matrix :
63+ workspace : [airdrops, flow, lockup, utils]
6064 steps :
6165 - uses : actions/checkout@v5
6266 - uses : foundry-rs/foundry-toolchain@v1
@@ -65,18 +69,27 @@ jobs:
6569 - uses : oven-sh/setup-bun@v2
6670 - run : bun install
6771
72+ - name : Build contracts
73+ env :
74+ FOUNDRY_PROFILE : optimized
75+ run : |
76+ just build ${{ matrix.workspace }}
77+
6878 - name : Run integration tests
6979 env :
7080 FOUNDRY_FUZZ_RUNS : 2000
7181 FOUNDRY_PROFILE : test-optimized
7282 run : | # shell
7383 forge test \
7484 --match-path "tests/integration/**/*.sol" \
75- --root lockup
85+ --root ${{ matrix.workspace }}
7686
7787 test-invariant :
7888 needs : check
7989 runs-on : ubuntu-latest
90+ strategy :
91+ matrix :
92+ workspace : [flow, lockup, utils]
8093 steps :
8194 - uses : actions/checkout@v5
8295 - uses : foundry-rs/foundry-toolchain@v1
@@ -85,10 +98,16 @@ jobs:
8598 - uses : oven-sh/setup-bun@v2
8699 - run : bun install
87100
101+ - name : Build contracts
102+ env :
103+ FOUNDRY_PROFILE : optimized
104+ run : |
105+ just build ${{ matrix.workspace }}
106+
88107 - name : Run invariant tests
89108 env :
90109 FOUNDRY_PROFILE : test-optimized
91110 run : | # shell
92111 forge test \
93112 --match-path "tests/invariant/**/*.sol" \
94- --root lockup
113+ --root ${{ matrix.workspace }}
0 commit comments