Skip to content

Commit e44a384

Browse files
authored
Merge pull request #7 from cryptidtech/fix/workflow-conformity
workflow conformity
2 parents 7a165ec + 304b130 commit e44a384

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

‎.github/workflows/rust.yml‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Rust
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: ["master"]
66
pull_request:
7-
branches: ["main"]
7+
branches: ["master"]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -62,6 +62,30 @@ jobs:
6262
run: cargo build --no-default-features --target thumbv6m-none-eabi
6363
shell: bash
6464

65+
coverage:
66+
name: Coverage
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Install Rust Toolchain (stable)
73+
uses: dtolnay/rust-toolchain@stable
74+
with:
75+
components: llvm-tools-preview
76+
77+
- name: Install cargo-llvm-cov
78+
run: cargo install cargo-llvm-cov
79+
80+
- name: Run coverage
81+
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
82+
83+
- name: Upload coverage to Codecov
84+
uses: codecov/codecov-action@v4
85+
with:
86+
files: lcov.info
87+
fail_ci_if_error: false
88+
6589
audit:
6690
name: Security Audit
6791
runs-on: ubuntu-latest
@@ -76,4 +100,4 @@ jobs:
76100
run: cargo install cargo-audit
77101

78102
- name: Run cargo audit
79-
run: cargo audit
103+
run: cargo audit

0 commit comments

Comments
 (0)