Skip to content

Commit c7e8fb1

Browse files
Remove testing configuration
We are removing the temporary configuration used for workflow testing. We are also bumping the version of used custom GH actions from `v1` to `v2`, as `v2` uses the new order of modules executions.
1 parent da8a58f commit c7e8fb1

File tree

1 file changed

+48
-54
lines changed

1 file changed

+48
-54
lines changed

.github/workflows/contracts.yaml

Lines changed: 48 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,19 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v2
4646

47-
# TODO: uncomment below block of code before merge to main
48-
# - uses: actions/setup-node@v2
49-
# with:
50-
# node-version: "14.x"
51-
# cache: "yarn"
47+
- uses: actions/setup-node@v2
48+
with:
49+
node-version: "14.x"
50+
cache: "yarn"
5251

53-
# - name: Install dependencies
54-
# run: yarn install
52+
- name: Install dependencies
53+
run: yarn install
5554

56-
# - name: Build contracts
57-
# run: yarn build
55+
- name: Build contracts
56+
run: yarn build
5857

59-
# - name: Run tests
60-
# run: yarn test
58+
- name: Run tests
59+
run: yarn test
6160

6261
contracts-system-tests:
6362
needs: contracts-detect-changes
@@ -105,50 +104,45 @@ jobs:
105104
steps:
106105
- uses: actions/checkout@v2
107106

108-
# TODO: uncomment below block of code before merge to main
109-
# - uses: actions/setup-node@v2
110-
# with:
111-
# node-version: "14.x"
112-
# cache: "yarn"
113-
# registry-url: "https://registry.npmjs.org"
114-
115-
# - name: Install dependencies
116-
# run: yarn install --frozen-lockfile
117-
118-
# - name: Resolve latest contracts
119-
# run: yarn upgrade @keep-network/[email protected]
120-
121-
# - name: Configure tenderly
122-
# env:
123-
# TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }}
124-
# run: ./config_tenderly.sh
125-
126-
# - name: Deploy contracts
127-
# env:
128-
# CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
129-
# CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
130-
# KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
131-
# run: yarn deploy --network ${{ github.event.inputs.environment }}
132-
133-
# - name: Bump up package version
134-
# id: npm-version-bump
135-
# uses: keep-network/npm-version-bump@v2
136-
# with:
137-
# environment: ${{ github.event.inputs.environment }}
138-
# branch: ${{ github.ref }}
139-
# commit: ${{ github.sha }}
140-
141-
# - name: Publish to npm
142-
# env:
143-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
144-
# # TODO: remove `--dry-run` before merge to main
145-
# run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
146-
147-
# TODO: restore commented out `uses` config before merge to `main``
107+
- uses: actions/setup-node@v2
108+
with:
109+
node-version: "14.x"
110+
cache: "yarn"
111+
registry-url: "https://registry.npmjs.org"
112+
113+
- name: Install dependencies
114+
run: yarn install --frozen-lockfile
115+
116+
- name: Resolve latest contracts
117+
run: yarn upgrade @keep-network/[email protected]
118+
119+
- name: Configure tenderly
120+
env:
121+
TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }}
122+
run: ./config_tenderly.sh
123+
124+
- name: Deploy contracts
125+
env:
126+
CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
127+
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
128+
KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
129+
run: yarn deploy --network ${{ github.event.inputs.environment }}
130+
131+
- name: Bump up package version
132+
id: npm-version-bump
133+
uses: keep-network/npm-version-bump@v2
134+
with:
135+
environment: ${{ github.event.inputs.environment }}
136+
branch: ${{ github.ref }}
137+
commit: ${{ github.sha }}
138+
139+
- name: Publish to npm
140+
env:
141+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
142+
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }}
143+
148144
- name: Notify CI about completion of the workflow
149-
# uses: keep-network/ci/actions/notify-workflow-completed@v1
150-
uses: keep-network/ci/actions/notify-workflow-completed@main
151-
continue-on-error: true # TODO: remove before merge to main
145+
uses: keep-network/ci/actions/notify-workflow-completed@v2
152146
env:
153147
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
154148
with:

0 commit comments

Comments
 (0)