Add workflow to check format in CI
This commit is contained in:
parent
99a6f8dbc6
commit
e9ac53bb9a
2 changed files with 12 additions and 2 deletions
12
.github/workflows/format.yml
vendored
Normal file
12
.github/workflows/format.yml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
name: Format
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
native:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
components: rustfmt
|
||||
- uses: actions/checkout@master
|
||||
- name: Check format
|
||||
run: cargo fmt --all -- --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue