Skip to content

v3.0.0

v3.0.0 #23

Workflow file for this run

on: [pull_request, push]
env:
CARGO_TERM_COLOR: always
jobs:
lint_fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Check formating
run: cargo fmt --all -- --check
lint_clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Run clippy
run: cargo clippy
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: ["stable", "beta", "nightly"]
mode: ["debug", "release"]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- name: Run tests (debug)
if: matrix.mode == 'debug'
run: cargo test
- name: Run tests (release)
if: matrix.mode == 'release'
run: cargo test --release