Skip to content

Commit ee2ad88

Browse files
committed
ci: update coverage and audit ci
1 parent 279a762 commit ee2ad88

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

.github/workflows/audit.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
name: Security audit
2-
32
on:
43
schedule:
5-
- cron: '40 10 * * *'
4+
- cron: "0 0 * * *"
65
push:
76
paths:
8-
- '**/Cargo.toml'
9-
- '**/Cargo.lock'
10-
- '**/audit.yml'
7+
- "**/Cargo.toml"
8+
- "**/Cargo.lock"
9+
- "**/audit.yml"
1110
pull_request:
12-
1311
jobs:
1412
audit:
1513
runs-on: ubuntu-latest
1614
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions-rs/audit-check@v1
15+
- uses: actions/checkout@v4
16+
- uses: rustsec/audit-check@v2
1917
with:
2018
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coverage.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ on: [pull_request, push]
55
jobs:
66
coverage:
77
runs-on: ubuntu-latest
8+
env:
9+
CARGO_TERM_COLOR: always
810
steps:
9-
- uses: actions/checkout@v3
10-
- name: Set nightly
11-
run: rustup override set nightly
12-
- name: Install llvm-tools-preview
13-
run: rustup component add llvm-tools-preview
11+
- uses: actions/checkout@v4
12+
- name: Install Rust
13+
run: rustup update stable
1414
- name: Install cargo-llvm-cov
1515
uses: taiki-e/install-action@cargo-llvm-cov
1616
- name: Generate code coverage
17-
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
17+
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
1818
- name: Upload coverage to Codecov
19-
uses: codecov/codecov-action@v1
19+
uses: codecov/codecov-action@v3
2020
with:
2121
files: lcov.info
2222
fail_ci_if_error: true

0 commit comments

Comments
 (0)