-
-
Notifications
You must be signed in to change notification settings - Fork 381
32 lines (30 loc) · 1.07 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Unit Test Coverage
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push]
jobs:
coverage:
name: unit test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# Before rebuilding the taxonomies, we do this to restore dates so we don't have to build all taxonomies
# Prior usage in .github/workflows/pull_request.yml
- name: rebuild taxonomies
run: |
git ls-files taxonomies/ | xargs -I{} git log -1 --date=format:%Y%m%d%H%M.%S --format='touch -t %ad "{}"' "{}" | bash
make build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
- uses: actions/checkout@master
- name: generate coverage results
run: make cover
- name: generate text file with results
if: always()
run: make coverage_txt
- name: use codecov
if: always()
run: make codecov
- uses: codecov/codecov-action@v3
if: always()
with:
files: cover_db/codecov.json