add CI actions

actual tests will still have to be added.
This commit is contained in:
Johann150 2021-02-19 12:20:16 +01:00
parent bc501ebcc5
commit be2d6f9f00
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 33 additions and 0 deletions

33
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Tests
on:
push:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/cargo@v1
with:
command: test