Skip to content

Replace outdated actions-rs actions #109

Replace outdated actions-rs actions

Replace outdated actions-rs actions #109

Workflow file for this run

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
name: Build and test
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Run build
run: cargo build
- name: Run tests
run: cargo test
- name: Check formatting
run: cargo fmt --check
- name: Run Clippy
run: cargo clippy --all-targets