Skip to content

Commit

Permalink
CI: add miri tests, msrv tests and add -Dwarnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVeryDarkness committed Aug 29, 2024
1 parent 81a860c commit 58ed082
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
on: [push]

name: Build, Lint and Test
name: and Test

env:
RUSTFLAGS: "-Dwarnings"

jobs:
check:
name: Checking
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -16,16 +19,30 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.63
components: rustfmt, clippy
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --workspace --all-targets
- name: cargo test
run: cargo test --workspace
- name: install cargo-msrv
run: cargo binstall --no-confirm cargo-msrv
- name: cargo msrv
run: cargo msrv --version
- name: cargo msrv verify
run: cargo msrv verify
miri:
name: MIRI Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: miri
- name: cargo miri
run: cargo miri test --workspace

coverage:
name: Test Coverage
name: Lint and Test Coverage
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -40,7 +57,13 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: llvm-tools-preview
components: llvm-tools-preview, rustfmt, clippy
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --workspace --all-targets
- name: cargo doc
run: cargo doc --workspace
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate Code Coverage
Expand Down

0 comments on commit 58ed082

Please sign in to comment.