-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable part of workflow to quickly verify
Notify CI...
step
Change is only temporary, it should be reverted before merge to `main`.
- Loading branch information
1 parent
65184cf
commit da8a58f
Showing
1 changed file
with
50 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,19 +44,20 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
cache: "yarn" | ||
# TODO: uncomment below block of code before merge to main | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: "14.x" | ||
# cache: "yarn" | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
# - name: Install dependencies | ||
# run: yarn install | ||
|
||
- name: Build contracts | ||
run: yarn build | ||
# - name: Build contracts | ||
# run: yarn build | ||
|
||
- name: Run tests | ||
run: yarn test | ||
# - name: Run tests | ||
# run: yarn test | ||
|
||
contracts-system-tests: | ||
needs: contracts-detect-changes | ||
|
@@ -104,48 +105,49 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
cache: "yarn" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Resolve latest contracts | ||
run: yarn upgrade @keep-network/[email protected] | ||
|
||
- name: Configure tenderly | ||
env: | ||
TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }} | ||
run: ./config_tenderly.sh | ||
|
||
- name: Deploy contracts | ||
env: | ||
CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }} | ||
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
run: yarn deploy --network ${{ github.event.inputs.environment }} | ||
|
||
- name: Bump up package version | ||
id: npm-version-bump | ||
uses: keep-network/npm-version-bump@v2 | ||
with: | ||
environment: ${{ github.event.inputs.environment }} | ||
branch: ${{ github.ref }} | ||
commit: ${{ github.sha }} | ||
|
||
- name: Publish to npm | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# TODO: remove `--dry-run` before merge to main | ||
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run | ||
# TODO: uncomment below block of code before merge to main | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: "14.x" | ||
# cache: "yarn" | ||
# registry-url: "https://registry.npmjs.org" | ||
|
||
# - name: Install dependencies | ||
# run: yarn install --frozen-lockfile | ||
|
||
# - name: Resolve latest contracts | ||
# run: yarn upgrade @keep-network/[email protected] | ||
|
||
# - name: Configure tenderly | ||
# env: | ||
# TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }} | ||
# run: ./config_tenderly.sh | ||
|
||
# - name: Deploy contracts | ||
# env: | ||
# CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }} | ||
# CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
# KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
# run: yarn deploy --network ${{ github.event.inputs.environment }} | ||
|
||
# - name: Bump up package version | ||
# id: npm-version-bump | ||
# uses: keep-network/npm-version-bump@v2 | ||
# with: | ||
# environment: ${{ github.event.inputs.environment }} | ||
# branch: ${{ github.ref }} | ||
# commit: ${{ github.sha }} | ||
|
||
# - name: Publish to npm | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# # TODO: remove `--dry-run` before merge to main | ||
# run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run | ||
|
||
# TODO: restore commented out `uses` config before merge to `main`` | ||
- name: Notify CI about completion of the workflow | ||
# uses: keep-network/ci/actions/notify-workflow-completed@v1 | ||
uses: keep-network/ci/actions/notify-workflow-completed@ci-goerli | ||
uses: keep-network/ci/actions/notify-workflow-completed@main | ||
continue-on-error: true # TODO: remove before merge to main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||
|