2022-03-10 13:17:01 +00:00
|
|
|
name: Test coverage
|
|
|
|
on:
|
|
|
|
pull_request: {}
|
|
|
|
push:
|
|
|
|
branches: [develop, main, master]
|
|
|
|
jobs:
|
|
|
|
test-coverage:
|
|
|
|
runs-on: ubuntu-latest
|
2022-03-11 10:26:42 +00:00
|
|
|
env:
|
2022-03-11 13:00:56 +00:00
|
|
|
# This must be set for fetchdep.sh to get the right branch
|
2022-03-11 10:26:42 +00:00
|
|
|
PR_NUMBER: ${{github.event.number}}
|
2022-03-10 13:17:01 +00:00
|
|
|
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:
|
2022-03-14 11:01:02 +00:00
|
|
|
fail_ci_if_error: false
|
2022-03-10 13:17:01 +00:00
|
|
|
verbose: true
|