Add test coverage reporting (#8009)

This commit is contained in:
Andy Balaam 2022-03-10 13:17:01 +00:00 committed by GitHub
parent 48cd83b9d5
commit c89c2253fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

25
.github/workflows/test_coverage.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Test coverage
on:
pull_request: {}
push:
branches: [develop, main, master]
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Yarn cache
uses: c-hive/gha-yarn-cache@v2
- name: Install Deps
run: "./scripts/ci/install-deps.sh --ignore-scripts"
- name: Run tests with coverage
run: "yarn install && yarn reskindex && yarn coverage"
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
verbose: true