chore(ci): Add GitHub Actions CI file

This commit is contained in:
komaeda 2019-08-21 13:23:38 +02:00 committed by GitHub
parent f9987c8bed
commit 17690b3add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,22 @@
on: [push, pull_request]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 50
- name: Install Rust Stable
run: |
rustc -vV
rustup update stable
rustup default stable
rustc -vV
- name: Run rustfmt
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- -Dwarnings
- name: Run tests
run: cargo test --verbose