Add Github Actions for CI

This commit is contained in:
2021-05-16 15:00:07 +02:00
parent 50e99fd07a
commit 1ac8c09a82

44
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
on:
push:
pull_request:
name: Continuous integration
jobs:
ci:
name: Rust project
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: build
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings