Merge pull request #174 from 0xneves/main #81
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 | |
pull_request: | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
env: | |
DEPLOYER_PRIVATE_KEY: ${{ vars.DEPLOYER_PRIVATE_KEY }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.16.0 | |
- name: Install dependencies | |
run: yarn install | |
# This is required separately from yarn test because it generates the typechain definitions | |
- name: Compile | |
run: yarn compile | |
- name: Run unit tests | |
run: yarn test |