Merge pull request #727 from ebtc-protocol/feat/c4-lev-macro-fixes #1659
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: Test contracts | |
env: | |
CI: true | |
FORCE_COLOR: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "packages/contracts/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 14.x | |
- id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install --frozen-lockfile | |
- name: Test contracts | |
run: yarn coverage | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./packages/contracts/coverage/lcov.info | |
fail_ci_if_error: false | |
verbose: true |