Feat: improved contracts #4
Workflow file for this run
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: Contracts CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'contracts/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'contracts/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: contracts | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup NodeJS 20.12.2 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.14.0 | |
cache: npm | |
- name: Show NodeJS version | |
run: npm --version | |
- name: Install Hardhat | |
run: npm install --save-dev [email protected] | |
- name: Install Hardhat Dependencies | |
run: npm ci | |
- name: Run Hardhat Test | |
run: npx hardhat test |