Merge pull request #50 from autonomys/feat/display-explorer-url #131
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
name: Run Hardhat Test with NPM | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test_hardhat_npm: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: smart_contract | |
name: Hardhat Test | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: yarn install | |
- name: Hardhat Compile | |
run: npx hardhat compile | |
- name: Hardhat Test | |
run: npx hardhat test | |
- name: Hardhat Coverage Result | |
run: npx hardhat coverage |