@@ -52,50 +52,51 @@ jobs:
52
52
- './contracts/staking/**'
53
53
- './test/system/**'
54
54
55
- contracts-build-and-test :
56
- runs-on : ubuntu-latest
57
- steps :
58
- - uses : actions/checkout@v3
59
-
60
- - uses : actions/setup-node@v3
61
- with :
62
- node-version : " 14.x"
63
- cache : " yarn"
64
-
65
- - name : Install dependencies
66
- run : yarn install
67
-
68
- - name : Build contracts
69
- run : yarn build
70
-
71
- - name : Run tests
72
- if : github.ref != 'refs/heads/dapp-development'
73
- run : yarn test
74
-
75
- contracts-system-tests :
76
- needs : contracts-detect-changes
77
- if : |
78
- needs.contracts-detect-changes.outputs.system-tests == 'true'
79
- && github.ref != 'refs/heads/dapp-development'
80
- runs-on : ubuntu-latest
81
- steps :
82
- - uses : actions/checkout@v3
83
-
84
- - uses : actions/setup-node@v3
85
- with :
86
- node-version : " 14.x"
87
- cache : " yarn"
88
-
89
- - name : Install dependencies
90
- run : yarn install
91
-
92
- - name : Build contracts
93
- run : yarn build
94
-
95
- - name : Run system tests
96
- env :
97
- FORKING_URL : ${{ secrets.MAINNET_ETH_HOSTNAME_HTTP }}
98
- run : yarn test:system
55
+ # TODO: Uncomment before merge to `main`
56
+ # contracts-build-and-test:
57
+ # runs-on: ubuntu-latest
58
+ # steps:
59
+ # - uses: actions/checkout@v3
60
+
61
+ # - uses: actions/setup-node@v3
62
+ # with:
63
+ # node-version: "14.x"
64
+ # cache: "yarn"
65
+
66
+ # - name: Install dependencies
67
+ # run: yarn install
68
+
69
+ # - name: Build contracts
70
+ # run: yarn build
71
+
72
+ # - name: Run tests
73
+ # if: github.ref != 'refs/heads/dapp-development'
74
+ # run: yarn test
75
+
76
+ # contracts-system-tests:
77
+ # needs: contracts-detect-changes
78
+ # if: |
79
+ # needs.contracts-detect-changes.outputs.system-tests == 'true'
80
+ # && github.ref != 'refs/heads/dapp-development'
81
+ # runs-on: ubuntu-latest
82
+ # steps:
83
+ # - uses: actions/checkout@v3
84
+
85
+ # - uses: actions/setup-node@v3
86
+ # with:
87
+ # node-version: "14.x"
88
+ # cache: "yarn"
89
+
90
+ # - name: Install dependencies
91
+ # run: yarn install
92
+
93
+ # - name: Build contracts
94
+ # run: yarn build
95
+
96
+ # - name: Run system tests
97
+ # env:
98
+ # FORKING_URL: ${{ secrets.MAINNET_ETH_HOSTNAME_HTTP }}
99
+ # run: yarn test:system
99
100
100
101
contracts-deployment-dry-run :
101
102
runs-on : ubuntu-latest
@@ -114,7 +115,8 @@ jobs:
114
115
run : yarn deploy
115
116
116
117
contracts-deployment-testnet :
117
- needs : [contracts-build-and-test]
118
+ # TODO: Uncomment before merge to `main`
119
+ # needs: [contracts-build-and-test]
118
120
if : |
119
121
github.event_name == 'workflow_dispatch'
120
122
&& github.ref != 'refs/heads/dapp-development'
@@ -158,113 +160,115 @@ jobs:
158
160
- name : Publish to npm
159
161
env :
160
162
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
161
- run : npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }}
162
-
163
- - name : Notify CI about completion of the workflow
164
- uses : keep-network/ci/actions/notify-workflow-completed@v2
165
- env :
166
- GITHUB_TOKEN : ${{ secrets.CI_GITHUB_TOKEN }}
167
- with :
168
- module : " github.com/threshold-network/solidity-contracts"
169
- url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
170
- environment : ${{ github.event.inputs.environment }}
171
- upstream_builds : ${{ github.event.inputs.upstream_builds }}
172
- upstream_ref : ${{ github.event.inputs.upstream_ref }}
173
- version : ${{ steps.npm-version-bump.outputs.version }}
174
-
175
- # This job is responsible for publishing packages from `dapp-development`
176
- # branch, which are slightly modified to help with the process of testing some
177
- # features on the Threshold Token dApp. The job starts only if workflow gets
178
- # triggered by the `workflow_dispatch` event on the branch `dapp-development`.
179
- contracts-dapp-development-deployment-testnet :
180
- needs : [contracts-build-and-test]
181
- if : |
182
- github.event_name == 'workflow_dispatch'
183
- && github.ref == 'refs/heads/dapp-development'
184
- runs-on : ubuntu-latest
185
- steps :
186
- - uses : actions/checkout@v3
187
-
188
- - uses : actions/setup-node@v3
189
- with :
190
- node-version : " 14.x"
191
- cache : " yarn"
192
- registry-url : " https://registry.npmjs.org"
193
-
194
- - name : Install dependencies
195
- run : yarn install --frozen-lockfile
196
-
197
- - name : Resolve latest contracts
198
- run : yarn upgrade @keep-network/keep-core@${{ github.event.inputs.environment }}
199
-
200
- - name : Deploy contracts
201
- env :
202
- CHAIN_API_URL : ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
203
- CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY : ${{ secrets.DAPP_DEV_GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
204
- KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY : ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
205
- ETHERSCAN_API_KEY : ${{ secrets.ETHERSCAN_API_KEY }}
206
- run : yarn deploy --network ${{ github.event.inputs.environment }}
207
-
208
- - name : Bump up package version
209
- id : npm-version-bump
210
- uses : keep-network/npm-version-bump@v2
211
- with :
212
- environment : dapp-dev-${{ github.event.inputs.environment }}
213
- branch : ${{ github.ref }}
214
- commit : ${{ github.sha }}
215
-
216
- - name : Publish to npm
217
- env :
218
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
219
- run : |
220
- npm publish --access=public \
221
- --network=${{ github.event.inputs.environment }} \
222
- --tag dapp-development-${{ github.event.inputs.environment }}
223
-
224
- - name : Notify CI about completion of the workflow
225
- uses : keep-network/ci/actions/notify-workflow-completed@v2
226
- env :
227
- GITHUB_TOKEN : ${{ secrets.CI_GITHUB_TOKEN }}
228
- with :
229
- module : " github.com/threshold-network/solidity-contracts"
230
- url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
231
- environment : ${{ github.event.inputs.environment }}
232
- upstream_builds : ${{ github.event.inputs.upstream_builds }}
233
- upstream_ref : dapp-development
234
- version : ${{ steps.npm-version-bump.outputs.version }}
235
-
236
- contracts-slither :
237
- runs-on : ubuntu-latest
238
- if : |
239
- github.event_name != 'workflow_dispatch'
240
- && github.event_name != 'schedule'
241
- steps :
242
- - uses : actions/checkout@v3
243
-
244
- - uses : actions/setup-node@v3
245
- with :
246
- node-version : " 14"
247
- cache : " yarn"
248
-
249
- - uses : actions/setup-python@v4
250
- with :
251
- python-version : 3.8.5
252
-
253
- - name : Install Solidity
254
- env :
255
- SOLC_VERSION : 0.8.9 # according to solidity.version in hardhat.config.ts
256
- run : |
257
- pip3 install solc-select
258
- solc-select install $SOLC_VERSION
259
- solc-select use $SOLC_VERSION
260
-
261
- - name : Install Slither
262
- env :
263
- SLITHER_VERSION : 0.8.0
264
- run : pip3 install slither-analyzer==$SLITHER_VERSION
265
-
266
- - name : Install dependencies
267
- run : yarn install
268
-
269
- - name : Run Slither
270
- run : slither .
163
+ # TODO: remove dry-run
164
+ run : npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
165
+
166
+ # TODO: Uncomment before merge to `main`
167
+ # - name: Notify CI about completion of the workflow
168
+ # uses: keep-network/ci/actions/notify-workflow-completed@v2
169
+ # env:
170
+ # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
171
+ # with:
172
+ # module: "github.com/threshold-network/solidity-contracts"
173
+ # url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
174
+ # environment: ${{ github.event.inputs.environment }}
175
+ # upstream_builds: ${{ github.event.inputs.upstream_builds }}
176
+ # upstream_ref: ${{ github.event.inputs.upstream_ref }}
177
+ # version: ${{ steps.npm-version-bump.outputs.version }}
178
+
179
+ # # This job is responsible for publishing packages from `dapp-development`
180
+ # # branch, which are slightly modified to help with the process of testing some
181
+ # # features on the Threshold Token dApp. The job starts only if workflow gets
182
+ # # triggered by the `workflow_dispatch` event on the branch `dapp-development`.
183
+ # contracts-dapp-development-deployment-testnet:
184
+ # needs: [contracts-build-and-test]
185
+ # if: |
186
+ # github.event_name == 'workflow_dispatch'
187
+ # && github.ref == 'refs/heads/dapp-development'
188
+ # runs-on: ubuntu-latest
189
+ # steps:
190
+ # - uses: actions/checkout@v3
191
+
192
+ # - uses: actions/setup-node@v3
193
+ # with:
194
+ # node-version: "14.x"
195
+ # cache: "yarn"
196
+ # registry-url: "https://registry.npmjs.org"
197
+
198
+ # - name: Install dependencies
199
+ # run: yarn install --frozen-lockfile
200
+
201
+ # - name: Resolve latest contracts
202
+ # run: yarn upgrade @keep-network/keep-core@${{ github.event.inputs.environment }}
203
+
204
+ # - name: Deploy contracts
205
+ # env:
206
+ # CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
207
+ # CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.DAPP_DEV_GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
208
+ # KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
209
+ # ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
210
+ # run: yarn deploy --network ${{ github.event.inputs.environment }}
211
+
212
+ # - name: Bump up package version
213
+ # id: npm-version-bump
214
+ # uses: keep-network/npm-version-bump@v2
215
+ # with:
216
+ # environment: dapp-dev-${{ github.event.inputs.environment }}
217
+ # branch: ${{ github.ref }}
218
+ # commit: ${{ github.sha }}
219
+
220
+ # - name: Publish to npm
221
+ # env:
222
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
223
+ # run: |
224
+ # npm publish --access=public \
225
+ # --network=${{ github.event.inputs.environment }} \
226
+ # --tag dapp-development-${{ github.event.inputs.environment }}
227
+
228
+ # - name: Notify CI about completion of the workflow
229
+ # uses: keep-network/ci/actions/notify-workflow-completed@v2
230
+ # env:
231
+ # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
232
+ # with:
233
+ # module: "github.com/threshold-network/solidity-contracts"
234
+ # url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
235
+ # environment: ${{ github.event.inputs.environment }}
236
+ # upstream_builds: ${{ github.event.inputs.upstream_builds }}
237
+ # upstream_ref: dapp-development
238
+ # version: ${{ steps.npm-version-bump.outputs.version }}
239
+
240
+ # contracts-slither:
241
+ # runs-on: ubuntu-latest
242
+ # if: |
243
+ # github.event_name != 'workflow_dispatch'
244
+ # && github.event_name != 'schedule'
245
+ # steps:
246
+ # - uses: actions/checkout@v3
247
+
248
+ # - uses: actions/setup-node@v3
249
+ # with:
250
+ # node-version: "14"
251
+ # cache: "yarn"
252
+
253
+ # - uses: actions/setup-python@v4
254
+ # with:
255
+ # python-version: 3.8.5
256
+
257
+ # - name: Install Solidity
258
+ # env:
259
+ # SOLC_VERSION: 0.8.9 # according to solidity.version in hardhat.config.ts
260
+ # run: |
261
+ # pip3 install solc-select
262
+ # solc-select install $SOLC_VERSION
263
+ # solc-select use $SOLC_VERSION
264
+
265
+ # - name: Install Slither
266
+ # env:
267
+ # SLITHER_VERSION: 0.8.0
268
+ # run: pip3 install slither-analyzer==$SLITHER_VERSION
269
+
270
+ # - name: Install dependencies
271
+ # run: yarn install
272
+
273
+ # - name: Run Slither
274
+ # run: slither .
0 commit comments