Skip to content

Commit e3ba353

Browse files
Remove temporary config
1 parent 619d4b6 commit e3ba353

File tree

1 file changed

+47
-51
lines changed

1 file changed

+47
-51
lines changed

.github/workflows/contracts.yaml

Lines changed: 47 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -52,51 +52,50 @@ jobs:
5252
- './contracts/staking/**'
5353
- './test/system/**'
5454
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
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
10099

101100
contracts-deployment-dry-run:
102101
runs-on: ubuntu-latest
@@ -115,8 +114,7 @@ jobs:
115114
run: yarn deploy
116115

117116
contracts-deployment-testnet:
118-
# TODO: Uncomment before merge to `main`
119-
# needs: [contracts-build-and-test]
117+
needs: [contracts-build-and-test]
120118
if: |
121119
github.event_name == 'workflow_dispatch'
122120
&& github.ref != 'refs/heads/dapp-development'
@@ -160,8 +158,7 @@ jobs:
160158
- name: Publish to npm
161159
env:
162160
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
163-
# TODO: Remove `--dry-run` before merge to `main`
164-
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
161+
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }}
165162

166163
- name: Notify CI about completion of the workflow
167164
uses: keep-network/ci/actions/notify-workflow-completed@v2
@@ -180,8 +177,7 @@ jobs:
180177
# features on the Threshold Token dApp. The job starts only if workflow gets
181178
# triggered by the `workflow_dispatch` event on the branch `dapp-development`.
182179
contracts-dapp-development-deployment-testnet:
183-
# TODO: Uncomment before merge to `main`
184-
# needs: [contracts-build-and-test]
180+
needs: [contracts-build-and-test]
185181
if: |
186182
github.event_name == 'workflow_dispatch'
187183
&& github.ref == 'refs/heads/dapp-development'

0 commit comments

Comments
 (0)