Skip to content

Commit 1bdba04

Browse files
infra: switch to llvm-cov
fix ast-grep#1570
1 parent 30f32eb commit 1bdba04

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/coverage.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,24 @@ on:
88
- main
99

1010
jobs:
11-
test:
12-
name: coverage
11+
coverage:
1312
runs-on: ubuntu-latest
14-
container:
15-
image: xd009642/tarpaulin:develop-nightly
16-
options: --security-opt seccomp=unconfined
13+
env:
14+
CARGO_TERM_COLOR: always
1715
steps:
1816
- name: Checkout repository
1917
uses: actions/checkout@v4
20-
with:
21-
submodules: true
18+
- name: Install Rust
19+
run: rustup update stable
20+
- name: Install cargo-llvm-cov
21+
uses: taiki-e/install-action@cargo-llvm-cov
2222
- name: Generate code coverage
23-
run: |
24-
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
23+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
2524
- name: Upload to codecov.io
2625
uses: codecov/codecov-action@v4
27-
env:
28-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2926
with:
27+
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
28+
files: lcov.info
3029
fail_ci_if_error: true
3130
check:
3231
name: Lint/Format Check

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy