Skip to content

Commit d81be52

Browse files
committed
chore: Refactor code coverage script.
1 parent 0471cfd commit d81be52

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

Diff for: .github/workflows/ci.yml

-6
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,3 @@ jobs:
3636

3737
- name: test on Nightly
3838
run: cargo test --workspace
39-
40-
- name: coverage
41-
run: |
42-
cargo install cargo-tarpaulin
43-
cargo tarpaulin --out xml
44-
bash <(curl -s https://codecov.io/bash)

Diff for: .github/workflows/coverage.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: coverage
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: dtolnay/rust-toolchain@nightly
13+
14+
- name: coverage nightly
15+
run: |
16+
cargo install cargo-tarpaulin
17+
cargo tarpaulin --out xml --output-dir ./nightly --workspace
18+
- uses: dtolnay/rust-toolchain@stable
19+
20+
- name: coverage nightly
21+
run: |
22+
cargo tarpaulin --out xml --output-dir ./stable --workspace
23+
- uses: codecov/codecov-action@v3
24+
with:
25+
token: ${{ secrets.CODECOV_TOKEN }}
26+
files: ./stable/cobertura.xml,./nightly/cobertura.xml
27+
name: RSTML

Diff for: .tarpaulin.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[unquoted_text_on_stable]
2+
features = "rstml/rawtext-stable-hack"
3+
4+
[custom_node_extendable]
5+
features = "rstml-control-flow/extendable"
6+
7+
[report]
8+
out = ["Xml", "Html"]

0 commit comments

Comments
 (0)