ci(actions): improve rust workflow

This commit is contained in:
EdJoPaTo
2021-04-30 11:01:56 +02:00
parent 8344fe213a
commit 1bdca46b4b
2 changed files with 27 additions and 22 deletions
+26
View File
@@ -0,0 +1,26 @@
name: Rust Code Formatting
on:
push:
pull_request:
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check --verbose