Skip to content

Commit 79b8f84

Browse files
authored
Merge pull request #19 from derenv/coverage_artifact
Added codecov.yml config, Added codecov artifact upload step
2 parents 225c8fa + bc6edec commit 79b8f84

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2022 Deren Vural
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
14
name: Rust CI
25

36
on:
@@ -16,6 +19,7 @@ env:
1619
TOOLCHAIN_PROFILE: minimal
1720
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1821

22+
1923
jobs:
2024
lints:
2125
name: Run cargo fmt and cargo clippy
@@ -129,3 +133,10 @@ jobs:
129133
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
130134
with:
131135
directory: coverage
136+
- name: Compress coverage results
137+
run: tar -cvf coverage.tar coverage
138+
- name: Upload Artifact
139+
uses: actions/upload-artifact@v3
140+
with:
141+
name: coverage-results
142+
path: coverage.tar

codecov.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-FileCopyrightText: 2022 Deren Vural
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
4+
codecov:
5+
require_ci_to_pass: yes
6+
7+
coverage:
8+
precision: 2
9+
round: down
10+
range: "70...100"
11+
12+
parsers:
13+
gcov:
14+
branch_detection:
15+
conditional: yes
16+
loop: yes
17+
method: no
18+
macro: no
19+
20+
comment:
21+
layout: "reach,diff,flags,files,footer"
22+
behavior: default
23+
require_changes: no

0 commit comments

Comments
 (0)