Skip to content

Commit 1effeaa

Browse files
committed
Calculate coverage
1 parent 7063776 commit 1effeaa

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Coverage
2+
on: [push]
3+
4+
permissions:
5+
contents: read
6+
checks: write
7+
pull-requests: write
8+
9+
jobs:
10+
coverage:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: xd009642/tarpaulin:develop-nightly
14+
options: --security-opt seccomp=unconfined
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@main
18+
- name: Cache cargo
19+
uses: actions/cache@main
20+
with:
21+
path: |
22+
~/.cargo
23+
./target
24+
key: coverage-${{ runner.os }}
25+
26+
- name: Generate code coverage
27+
run: |
28+
cargo +nightly tarpaulin --verbose --out xml --tests --exclude-files benches/*
29+
30+
- name: Upload to codecov.io
31+
uses: codecov/codecov-action@v4
32+
with:
33+
token: ${{secrets.CODECOV_TOKEN}}
34+
fail_ci_if_error: false

tarpaulin.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[lua54]
2+
features = "lua54,vendored,json,regex,yaml"

0 commit comments

Comments
 (0)