[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:
CosminPerRam 2023-06-25 15:42:29 +03:00 committed by GitHub
parent 89fbd81331
commit 9c93e40650
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,17 +21,17 @@ jobs:
run: cargo clippy --verbose run: cargo clippy --verbose
- name: Run Tests - name: Run Tests
run: cargo test --verbose 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 - name: Install Audit
run: cargo install cargo-audit run: cargo install cargo-audit
- name: Run Audit - name: Run Audit
run: cargo audit --deny warnings 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 - name: Install MSRV
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with: