rust-gamedig/.github/workflows/ci.yml
CosminPerRam 9c93e40650
[CI] Pin specific rustfmt version (#57)
* [CI] Specify specific rustfmt version

* [CI] Specify platform in CI for rustfmt

* [CI] Fix cargo fmt running missing nightly version
2023-06-25 15:42:29 +03:00

41 lines
959 B
YAML

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Build
run: cargo build --verbose
- name: Run Clippy
run: cargo clippy --verbose
- name: Run Tests
run: cargo test --verbose
- name: Install Audit
run: cargo install cargo-audit
- name: Run Audit
run: cargo audit --deny warnings
- name: Install Formatting nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-03-01
components: rustfmt
- name: Run Formatting check
run: cargo +nightly-2023-03-01 fmt --check --verbose
- name: Install MSRV
uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true
- name: Run MSRV
run: cargo build