@@ -52,50 +52,50 @@ jobs:
5252 - './contracts/staking/**'
5353 - './test/system/**'
5454
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+ # 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
9999
100100 contracts-deployment-dry-run :
101101 runs-on : ubuntu-latest
@@ -114,7 +114,8 @@ jobs:
114114 run : yarn deploy
115115
116116 contracts-deployment-testnet :
117- needs : [contracts-build-and-test]
117+ # TODO: Uncomment before merge to `main`
118+ # needs: [contracts-build-and-test]
118119 if : |
119120 github.event_name == 'workflow_dispatch'
120121 && github.ref != 'refs/heads/dapp-development'
@@ -158,80 +159,83 @@ jobs:
158159 - name : Publish to npm
159160 env :
160161 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 }}
162+ # TODO: Remove `--dry-run` before merge to `main`
163+ run : npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
164+
165+ # TODO: Uncomment before merge to `main`
166+ # - name: Notify CI about completion of the workflow
167+ # uses: keep-network/ci/actions/notify-workflow-completed@v2
168+ # env:
169+ # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
170+ # with:
171+ # module: "github.com/threshold-network/solidity-contracts"
172+ # url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
173+ # environment: ${{ github.event.inputs.environment }}
174+ # upstream_builds: ${{ github.event.inputs.upstream_builds }}
175+ # upstream_ref: ${{ github.event.inputs.upstream_ref }}
176+ # version: ${{ steps.npm-version-bump.outputs.version }}
177+
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 }}
235239
236240 contracts-slither :
237241 runs-on : ubuntu-latest
0 commit comments