Skip to content

Commit

Permalink
ci: Report coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 26, 2023
1 parent e784476 commit 845f6d7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -54,6 +54,39 @@ jobs:
- name: cargo-rdme
uses: alorel-actions/cargo/rdme@v1

nightly-test:
name: Rust nightly
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Init toolchain
uses: alorel-actions/cargo/init@v1
with:
toolchain: nightly-2023-09-18
cache-prefix: test
local: true
components: llvm-tools-preview

- name: Examples & unit tests
uses: alorel-actions/cargo/llvm-cov@v1
with:
output: unit.lcov
args: --lcov --examples --tests --workspace

- name: Doc tests
uses: alorel-actions/cargo/llvm-cov@v1
with:
output: doc.lcov
args: --lcov --doctests --workspace

- name: Upload coverage
uses: coverallsapp/github-action@v2
continue-on-error: true
with:
files: unit.lcov doc.lcov

test:
name: Rust ${{matrix.toolchain}}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -88,6 +121,7 @@ jobs:
needs:
- test
- lint
- nightly-test
permissions:
contents: write
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
/target/
/*.lcov

0 comments on commit 845f6d7

Please sign in to comment.