Skip to content

Upgrade GitHub action #30

Upgrade GitHub action

Upgrade GitHub action #30

Workflow file for this run

on:
pull_request:
push:
branches:
- main
- master
name: Continuous Integration
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: clippy, rustfmt
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [ stable, beta, nightly ]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --workspace