Fix rustfmt check on Github Actions (#688)

This commit is contained in:
Philipp Oppermann
2019-11-22 15:53:24 +01:00
committed by GitHub
parent f45c265142
commit 76520e761a

View File

@@ -66,15 +66,11 @@ jobs:
timeout-minutes: 2
steps:
- uses: actions/checkout@v1
- name: "Find latest Nightly with rustfmt"
id: component
uses: actions-rs/components-nightly@v1
with:
component: rustfmt
- name: "Add a rustup override for rustfmt nightly"
- name: "Use the latest Rust nightly with rustfmt"
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
toolchain: nightly
profile: minimal
components: rustfmt
override: true
- run: rustup component add rustfmt
- run: cargo fmt -- --check