build(ci): 🛠 depend all CI steps on check_formatting
This commit is contained in:
parent
4c3001ba50
commit
0464f7d95b
.github/workflows
|
@ -7,8 +7,18 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
check_formatting:
|
||||
name: "Check Formatting"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: rustup toolchain install nightly --profile minimal --component rustfmt
|
||||
- run: cargo +nightly fmt -- --check
|
||||
|
||||
test:
|
||||
name: Test
|
||||
needs: check_formatting
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -118,17 +128,9 @@ jobs:
|
|||
run: env QEMU_MACHINE=raspi3 cargo make test
|
||||
if: runner.os != 'macOS'
|
||||
|
||||
check_formatting:
|
||||
name: "Check Formatting"
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 2
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: rustup toolchain install nightly --profile minimal --component rustfmt
|
||||
- run: cargo +nightly fmt -- --check
|
||||
|
||||
clippy:
|
||||
name: "Clippy"
|
||||
needs: check_formatting
|
||||
strategy:
|
||||
matrix:
|
||||
features: [
|
||||
|
|
Loading…
Reference in New Issue