Repository navigation
52 lines (50 loc) · 1.56 KB
/
Copy pathflow-coverage.yml
File metadata and controls
52 lines (50 loc) · 1.56 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Coverage analysis
on:
workflow_call:
jobs:
coverage:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l -eo pipefail {0}
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
fetch-depth: 0 # fetch all history for accurate results
- name: Configure Tracebit canary credentials
if: github.repository == 'RedisJSON/RedisJSON'
uses: tracebit-com/tracebit-community-action@b149c6c24dbd25df59fe3c81419a96757a06a2e8 # v1.4.0
with:
customer-id: sha5oz2y
api-token: ${{ secrets.SECURITY_API_TOKEN }}
profile: administrator
profile-region: us-east-1
async: true
- name: Setup specific
working-directory: .install
run: |
./install_script.sh sudo
- name: Install clang 18
working-directory: .install
run: |
./install_clang.sh sudo
- name: Get Redis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./deps/readies/bin/getredis --with-github-token --branch "$(.install/get-redis-ref.sh)" --force
- name: Build and test
run: make coverage QUICK=1 SHOW=1
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: bin/linux-x64-debug-cov/cov.info
fail_ci_if_error: true # Fail on upload errors
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage artifact
if: always()
uses: actions/upload-artifact@v6
with:
name: coverage-report
path: bin/linux-x64-debug-cov/cov.info
if-no-files-found: warn