rust-gamedig/.github/workflows/ci.yml
Tom b95b2abe0f
[Crate] Enforce formatting in CI (#46)
* [CI] Check formatting

* Format all files
2023-06-10 18:15:12 +03:00

37 lines
750 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 Check
run: cargo check --verbose
- name: Run Build
run: cargo build --verbose
- name: Run Tests
run: cargo test --verbose
- name: Install MSRV
uses: actions-rs/toolchain@v1
with:
toolchain: 1.60.0
override: true
- name: Run MSRV
run: cargo build
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
- name: Run formatting check
run: cargo +nightly fmt --check --verbose