add gh action #3
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 compile | |
on: | |
push: | |
branches: [master, release] | |
pull_request: | |
branches: [master, release] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: | | |
cd packages/hardhat | |
yarn install | |
- name: Compile Hardhat project | |
run: | | |
cd packages/hardhat | |
yarn hardhat compile |