Skip to content

Commit

Permalink
Update CI tools
Browse files Browse the repository at this point in the history
  • Loading branch information
msk committed Mar 25, 2024
1 parent 526201b commit df18e70
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: hecrj/setup-rust-action@v1
uses: dtolnay/rust-toolchain@stable
with:
rust-version: stable
- uses: actions/checkout@v4
components: clippy, rustfmt
- name: Check formatting
run: cargo fmt -- --check
- name: Clippy
Expand All @@ -27,11 +27,9 @@ jobs:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -40,11 +38,9 @@ jobs:
msrv:
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: 1.69
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/[email protected]
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -53,17 +49,17 @@ jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
profile: minimal
toolchain: nightly
override: true
components: llvm-tools-preview
- uses: actions/checkout@v4
- name: Build and run
uses: Swatinem/fucov@v1
tool: cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Update coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
directory: coverage
files: lcov.info
fail_ci_if_error: true

0 comments on commit df18e70

Please sign in to comment.