Skip to content

Merge pull request #114 from P4-Games/feature/112-secondary-prize-value #86

Merge pull request #114 from P4-Games/feature/112-secondary-prize-value

Merge pull request #114 from P4-Games/feature/112-secondary-prize-value #86

Workflow file for this run

name: tests
on:
push:
branches:
- main
- develop
pull_request:
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@v4
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
block-on-failure:
needs: build
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- name: Block push on failure
run: exit 1