forked from RedisJSON/RedisJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.11 KB
/
flow-coverage.yml
File metadata and controls
43 lines (41 loc) · 1.11 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
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@v4
with:
submodules: recursive
fetch-depth: 0 # fetch all history for accurate results
- name: Setup specific
working-directory: .install
run: |
./install_script.sh sudo
- name: Setup common
run: |
./.install/common_installations.sh sudo
- name: Get Rust
working-directory: .install
run: |
./getrust.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
- name: Build and test
run: make coverage QUICK=1 SHOW=1
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
file: bin/linux-x64-debug-cov/cov.info
fail_ci_if_error: true # Fail on upload errors
token: ${{ secrets.CODECOV_TOKEN }}