Skip to content

Commit 39cd41c

Browse files
authored
Merge 3581250 into de19c68
2 parents de19c68 + 3581250 commit 39cd41c

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/ci.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212
jobs:
1313
upload-metrics:
1414
runs-on: ubuntu-latest
15-
if: ${{ always() }}
15+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'codecov-bypass') }}
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
@@ -26,10 +26,27 @@ jobs:
2626
codecov_yml_path: .codecov.yml
2727

2828
- uses: codecov/codecov-action@v4
29+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'codecov-bypass') }}
2930
with:
3031
file: onboard_av_binary_coverage.dat
3132
flags: onboard_av_binary
3233
verbose: true
3334
token: ${{ secrets.CODECOV_TOKEN }}
3435
codecov_yml_path: .codecov.yml
3536

37+
coverage-bypass:
38+
runs-on: ubuntu-latest
39+
if: ${{ contains(github.event.pull_request.labels.*.name, 'codecov-bypass') }}
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: upload empty report for status checks
45+
run: |
46+
curl -Os https://cli.codecov.io/v0.8.0/linux/codecov
47+
chmod +x codecov
48+
./codecov -v create-commit -t ${{ secrets.CODECOV_TOKEN }}
49+
./codecov -v create-report -t ${{ secrets.CODECOV_TOKEN }}
50+
./codecov -v empty-upload -t ${{ secrets.CODECOV_TOKEN }} --force
51+
env:
52+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

conflict.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ c
44
d
55
e
66
k
7+
f

example/example.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
pub fn add_two_integers(a: i32, b: i32) -> i32 {
2+
a + b
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn test_add_two_integers() {
11+
assert_eq!(add_two_integers(1, 2), 3);
12+
assert_eq!(add_two_integers(-1, 1), 0);
13+
assert_eq!(add_two_integers(-5, -3), -8);
14+
}
15+
}

0 commit comments

Comments
 (0)