Skip to content

Fixed issues on audit (#48) #34

Fixed issues on audit (#48)

Fixed issues on audit (#48) #34

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: read
env:
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Rust ${{matrix.rust}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [beta, stable, 1.66.0]
include:
- rust: nightly
rustflags: --cfg thiserror_nightly_testing
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: rust-src
- run: cargo test --all
env:
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}
clippy:
name: Clippy
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rust-src
- run: cargo clippy -- -Dclippy::all -Dclippy::pedantic
fmt:
name: Fmt
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, rust-src
- run: cargo fmt --all -- --check