Repository navigation
61 lines (57 loc) · 2.01 KB
/
Copy pathsource-coverage.yml
File metadata and controls
61 lines (57 loc) · 2.01 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
53
54
55
56
57
58
59
60
61
name: Source coverage
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: source-coverage-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-24.04
timeout-minutes: 90
env:
GITCOMET_REQUIRE_GIT_ANNEX: "1"
GITCOMET_REQUIRE_GIT_LFS: "1"
GITCOMET_REQUIRE_SYNTAX_CORPUS: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: true
- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang git-annex git-lfs lcov pkg-config \
libfontconfig1-dev libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev
pkg-config --modversion fontconfig
git annex version --raw
- uses: ./.github/actions/setup-mold
- name: Install coverage tools and the repository test runner
run: |
rustup component add llvm-tools-preview
cargo install --locked cargo-llvm-cov
python3 scripts/ci/install-nextest.py --bin-dir "$RUNNER_TEMP/gitcomet-ci-bin"
- name: Measure GitComet source coverage
run: |
bash scripts/coverage.sh
cat target/llvm-cov/summary.md >> "$GITHUB_STEP_SUMMARY"
- name: Upload coverage reports
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gitcomet-linux-source-coverage
path: |
target/llvm-cov/summary.md
target/llvm-cov/lcov.info
target/llvm-cov/html/
if-no-files-found: error
- name: Upload coverage test diagnostics
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: gitcomet-linux-source-coverage-diagnostics
path: |
target/source-coverage-diagnostics/*.log
target/source-coverage-diagnostics/*/junit.xml
if-no-files-found: ignore