Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @nomiclabs/hardhat-etherscan for Etherscan verification #125

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove temporary config
  • Loading branch information
michalinacienciala committed Sep 19, 2022

Verified

This commit was signed with the committer’s verified signature.
MichaelTaylor3D Michael Taylor
commit e3ba3539a9f0f1e33236cdf1e42ff0e00beefe0f
98 changes: 47 additions & 51 deletions .github/workflows/contracts.yaml
Original file line number Diff line number Diff line change
@@ -52,51 +52,50 @@ jobs:
- './contracts/staking/**'
- './test/system/**'

# TODO: Uncomment before merge to `main`
# contracts-build-and-test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - uses: actions/setup-node@v3
# with:
# node-version: "14.x"
# cache: "yarn"

# - name: Install dependencies
# run: yarn install

# - name: Build contracts
# run: yarn build

# - name: Run tests
# if: github.ref != 'refs/heads/dapp-development'
# run: yarn test

# contracts-system-tests:
# needs: contracts-detect-changes
# if: |
# needs.contracts-detect-changes.outputs.system-tests == 'true'
# && github.ref != 'refs/heads/dapp-development'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3

# - uses: actions/setup-node@v3
# with:
# node-version: "14.x"
# cache: "yarn"

# - name: Install dependencies
# run: yarn install

# - name: Build contracts
# run: yarn build

# - name: Run system tests
# env:
# FORKING_URL: ${{ secrets.MAINNET_ETH_HOSTNAME_HTTP }}
# run: yarn test:system
contracts-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "14.x"
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Build contracts
run: yarn build

- name: Run tests
if: github.ref != 'refs/heads/dapp-development'
run: yarn test

contracts-system-tests:
needs: contracts-detect-changes
if: |
needs.contracts-detect-changes.outputs.system-tests == 'true'
&& github.ref != 'refs/heads/dapp-development'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "14.x"
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Build contracts
run: yarn build

- name: Run system tests
env:
FORKING_URL: ${{ secrets.MAINNET_ETH_HOSTNAME_HTTP }}
run: yarn test:system

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

contracts-deployment-testnet:
# TODO: Uncomment before merge to `main`
# needs: [contracts-build-and-test]
needs: [contracts-build-and-test]
if: |
github.event_name == 'workflow_dispatch'
&& github.ref != 'refs/heads/dapp-development'
@@ -160,8 +158,7 @@ jobs:
- 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
run: npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }}

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