Merge pull request #55 from mantlenetworkio/afk/audit/oz-n-04-new #80
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: Hardhat Unit Tests | |
on: ["push", "pull_request"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 16.9.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.9.0 | |
- name: yarn, compile, coverage | |
run: | | |
yarn | |
cp .env.example .env | |
yarn compile | |
yarn test | |
- name: Deploy locally | |
run: | | |
npx hardhat node & | |
yarn deploy hardhat |