-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |