Skip to content

Increase root coverage #163

Increase root coverage

Increase root coverage #163

Workflow file for this run

name: Automated Tests and Linting
on:
push:
branches: [master]
pull_request:
branches:
- master
- dev
- v2
- v2.3
- v2.3-fix-review
env:
CI: true
PARSER_BROKEN: false # set to true if Solidity parsing is currently broken, this will skip Linting and Coverage
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: 16.13
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn --frozen-lockfile
- name: lint
run: yarn run lint
unit-test:
name: Unit Tests w/ Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn --frozen-lockfile
- name: Compile
run: yarn run compile
- name: Run tests
env:
MOCHA_REPORTER: dot
run: |
yarn run 'coverage'
- name: Unit Test Code Coverage Report
uses: romeovs/lcov-reporter-action@v0.3.1
with:
title: Unit Test Coverage Report
lcov-file: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}
delete-old-comments: true
if: ${{ github.event_name == 'pull_request' }}