Add github actions

This commit is contained in:
adria0
2020-07-29 11:45:51 +02:00
committed by Artem Vorotnikov
parent 544725a018
commit 82b37bfa0d
22 changed files with 631 additions and 760 deletions

20
.github/workflows/fmt.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
on: [push, pull_request]
name: rustfmt
jobs:
fmt:
name: Rustfmt
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 --config merge_imports=true