Skip to content

Updated the CI to replace the outdated actions with the new ones #25

Updated the CI to replace the outdated actions with the new ones

Updated the CI to replace the outdated actions with the new ones #25

Workflow file for this run

name: cder
on:
pull_request:
push:
branches:
- main
env:
RUSTFLAGS: -Dwarnings
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [1.68, stable, beta, nightly]
name: Test with Rust ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features
- run: cargo test