Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: better cargo test parameters + update dependencies #134

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Next Next commit
ci: better cargo test parameters + update dependencies
heeckhau committed May 27, 2024
commit 419f1fe14095c5fa8be3c844035ea131a59bd13b
12 changes: 7 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -17,20 +17,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2.5.0
- uses: Swatinem/rust-cache@v2.7.3

- name: "Build"
run: cargo build

- name: "Test"
run: cargo test --lib --bins --tests --examples --workspace
# Run all tests (bins, examples, lib, integration and docs)
# https://doc.rust-lang.org/cargo/commands/cargo-test.html#target-selection
run: cargo test

- name: "Check documentation"
# env:
@@ -42,7 +44,7 @@ jobs:
name: "Miri"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Miri
run: |
@@ -60,7 +62,7 @@ jobs:
name: Rustfmt and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Nightly with rustfmt and clipy
uses: dtolnay/rust-toolchain@stable