Merge pull request #12 from P4-Games/feature/tests #8
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: tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm install --no-warnings | |
- name: Compile contracts | |
run: npx hardhat compile | |
- name: Test deploy harhat | |
run: npx hardhat node & npx hardhat run --network hardhat scripts/deploy.ts | |
- name: Run tests | |
run: npx hardhat test |