mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
* [CI] Specify specific rustfmt version * [CI] Specify platform in CI for rustfmt * [CI] Fix cargo fmt running missing nightly version
41 lines
959 B
YAML
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
|