Skip to content

Bump actions/checkout from 3 to 4 #5

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #5

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.56.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