Skip to content

Commit

Permalink
Disable part of workflow to quickly verify Notify CI... step
Browse files Browse the repository at this point in the history
Change is only temporary, it should be reverted before merge to `main`.
  • Loading branch information
michalinacienciala committed Jul 14, 2022
1 parent 65184cf commit da8a58f
Showing 1 changed file with 50 additions and 48 deletions.
98 changes: 50 additions & 48 deletions .github/workflows/contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit da8a58f

Please sign in to comment.