CI: Always run rustfmt on fixed Rust version

Otherwise a new release of rustfmt may break CI without any change to
the code.
This commit is contained in:
Danilo Bargen 2020-08-30 18:51:28 +02:00
commit d9b5e49551

View file

@ -18,7 +18,7 @@ jobs:
rust: [1.39.0, stable]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
@ -42,7 +42,7 @@ jobs:
name: run clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.46.0
@ -53,14 +53,14 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
lint:
name: Rustfmt
fmt:
name: run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.46.0
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1