add tests github workflow on master

This commit is contained in:
Clément DOUIN 2021-04-28 18:14:10 +02:00
parent 65d0bdc4f0
commit 50607e3be2
No known key found for this signature in database
GPG key ID: 69C9B9CFFDEE2DEF

25
.github/workflows/tests.yaml vendored Normal file
View file

@ -0,0 +1,25 @@
name: tests
on:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Check project
uses: actions-rs/cargo@v1
with:
command: check
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test