Move fmt check into its own file

This commit is contained in:
Guillaume Gomez
2020-12-08 21:52:45 +01:00
parent 5929d657c1
commit 9fdd61379c
2 changed files with 21 additions and 15 deletions
+21
View File
@@ -0,0 +1,21 @@
name: fmt check
on:
push:
pull_request:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
-15
View File
@@ -5,21 +5,6 @@ on:
pull_request:
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
build:
runs-on: ${{ matrix.os }}
strategy: