mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
[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
This commit is contained in:
parent
89fbd81331
commit
9c93e40650
1 changed files with 25 additions and 25 deletions
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
|
|
@ -14,28 +14,28 @@ jobs:
|
|||
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 Formatting nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: rustfmt
|
||||
- name: Run Formatting check
|
||||
run: cargo +nightly fmt --check --verbose
|
||||
- name: Install Audit
|
||||
run: cargo install cargo-audit
|
||||
- name: Run Audit
|
||||
run: cargo audit --deny warnings
|
||||
- name: Install MSRV
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.60.0
|
||||
override: true
|
||||
- name: Run MSRV
|
||||
run: cargo build
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue