@@ -19,13 +19,21 @@ jobs:
19
19
20
20
strategy :
21
21
matrix :
22
- node-version : [16.x, 18.x]
22
+ node-version : [16, 18]
23
+
24
+ defaults :
25
+ run :
26
+ shell : nix develop .#ci-node${{ matrix.node-version }} -c bash {0}
23
27
24
28
steps :
25
29
- uses : actions/checkout@v3
26
30
with :
27
31
submodules : recursive
28
32
33
+ - uses : cachix/install-nix-action@v19
34
+ with :
35
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
36
+
29
37
- name : Show contexts
30
38
env :
31
39
HEAD_REF : ${{ github.head_ref }}
@@ -37,22 +45,14 @@ jobs:
37
45
echo github.ref: "$GITHUB_REF"
38
46
echo github.head_ref: "$HEAD_REF"
39
47
echo github.base_ref: ${{ github.base_ref }}
40
- - name : Use Node.js ${{ matrix.node-version }}
41
- uses : actions/setup-node@v3
42
- with :
43
- node-version : ${{ matrix.node-version }}
44
- cache : " yarn"
45
-
46
- - name : Install Foundry
47
- uses : foundry-rs/foundry-toolchain@v1
48
- with :
49
- version : nightly
50
48
51
49
- name : Install, lint, build, and test
52
50
run : |
53
51
yarn install --frozen-lockfile
54
52
yarn lint
55
53
yarn build
54
+ echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
55
+ echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
56
56
yarn test
57
57
env :
58
58
POLYGON_MAINNET_PROVIDER_URL : ${{ secrets.POLYGON_MAINNET_PROVIDER_URL }}
96
96
if : needs.check.outputs.build_subgraph
97
97
with :
98
98
release_branch : dev
99
- # empty string network deploys to all networks
100
- network : " "
99
+ network : " all"
101
100
secrets :
102
101
THE_GRAPH_ACCESS_TOKEN : ${{ secrets.THE_GRAPH_ACCESS_TOKEN }}
103
102
@@ -114,24 +113,23 @@ jobs:
114
113
115
114
runs-on : ubuntu-latest
116
115
116
+ defaults :
117
+ run :
118
+ shell : nix develop -c bash {0}
119
+
117
120
steps :
118
121
- uses : actions/checkout@v3
119
122
120
- - name : Use Node.js 18.x
121
- uses : actions/setup-node@v3
123
+ - uses : cachix/install-nix-action@v19
122
124
with :
123
- node-version : 18.x
124
- cache : " yarn"
125
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
125
126
126
- - name : Install Foundry
127
- uses : foundry-rs/foundry-toolchain@v1
128
- with :
129
- version : nightly
130
-
131
- - name : Run coverage test
127
+ - name : Install, run coverage test
132
128
run : |
133
129
yarn install --frozen-lockfile
134
130
yarn build
131
+ echo "FOUNDRY_PROFILE=ci" >> $GITHUB_ENV
132
+ echo "FOUNDRY_SOLC_VERSION=$SOLC_PATH" >> $GITHUB_ENV
135
133
yarn workspace @superfluid-finance/ethereum-contracts test-coverage
136
134
137
135
- name : Install lcov
@@ -156,7 +154,7 @@ jobs:
156
154
coverage-sdk-core :
157
155
uses : ./.github/workflows/call.test-sdk-core.yml
158
156
name : Build and Test SDK-Core Coverage (Canary Branch)
159
- with :
157
+ with :
160
158
subgraph-release : local
161
159
subgraph-endpoint : http://localhost:8000/subgraphs/name/superfluid-test
162
160
run-coverage-tests : true
@@ -237,15 +235,16 @@ jobs:
237
235
238
236
runs-on : ubuntu-latest
239
237
238
+ defaults :
239
+ run :
240
+ shell : nix develop -c bash {0}
241
+
240
242
steps :
241
243
- uses : actions/checkout@v3
242
244
243
- - name : Use Node.js 18.x
244
- uses : actions/setup-node@v3
245
+ - uses : cachix/install-nix-action@v19
245
246
with :
246
- node-version : 18.x
247
- cache : " yarn"
248
- registry-url : https://registry.npmjs.org/
247
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
249
248
250
249
- name : Install dependencies
251
250
run : yarn install --frozen-lockfile
@@ -279,6 +278,10 @@ jobs:
279
278
280
279
runs-on : ubuntu-latest
281
280
281
+ defaults :
282
+ run :
283
+ shell : nix develop -c bash {0}
284
+
282
285
steps :
283
286
- uses : actions/checkout@v3
284
287
@@ -287,12 +290,9 @@ jobs:
287
290
repository : superfluid-finance/build-scripts
288
291
path : build-scripts
289
292
290
- - name : Use Node.js 18.x
291
- uses : actions/setup-node@v3
293
+ - uses : cachix/install-nix-action@v19
292
294
with :
293
- node-version : 18.x
294
- cache : " yarn"
295
- registry-url : https://registry.npmjs.org/
295
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
296
296
297
297
- name : Install dependencies
298
298
run : yarn install --frozen-lockfile
@@ -330,7 +330,7 @@ jobs:
330
330
cloudfront_distribution_id : E3JEO5R14CT8IH
331
331
332
332
upgrade-contracts :
333
- name : Upgrade ethereum-contracts on goerli testnet (protocol release version "test")
333
+ name : Upgrade ethereum-contracts on canary testnet (protocol release version "test")
334
334
335
335
needs : [all-packages-tested]
336
336
@@ -339,16 +339,18 @@ jobs:
339
339
strategy :
340
340
fail-fast : false
341
341
matrix :
342
- network : [goerli]
342
+ network : [avalanche-fuji]
343
+
344
+ defaults :
345
+ run :
346
+ shell : nix develop -c bash {0}
343
347
344
348
steps :
345
349
- uses : actions/checkout@v3
346
350
347
- - name : Use Node.js 18.x
348
- uses : actions/setup-node@v3
351
+ - uses : cachix/install-nix-action@v19
349
352
with :
350
- node-version : 18.x
351
- cache : " yarn"
353
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
352
354
353
355
- name : Build
354
356
run : |
@@ -361,5 +363,5 @@ jobs:
361
363
npx truffle exec --network ${{ matrix.network }} ops-scripts/deploy-test-environment.js
362
364
env :
363
365
RELEASE_VERSION : master
364
- ETH_GOERLI_MNEMONIC : ${{ secrets.BUILD_AGENT_MNEMONIC }}
365
- ETH_GOERLI_PROVIDER_URL : ${{ secrets.ETH_GOERLI_PROVIDER_URL }}
366
+ AVALANCHE_FUJI_MNEMONIC : ${{ secrets.BUILD_AGENT_MNEMONIC }}
367
+ AVALANCHE_FUJI_PROVIDER_URL : ${{ secrets.AVALANCHE_FUJI_PROVIDER_URL }}
0 commit comments