Add tests to CI

This commit is contained in:
Alexander Weiss 2022-06-08 22:50:40 +02:00
parent 30b01426e3
commit 8eacd233af

38
.github/workflows/tests.yaml vendored Normal file
View File

@ -0,0 +1,38 @@
on:
pull_request:
push:
branches:
- main
name: Tests
jobs:
test_linux:
name: Test on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
test_macost:
name: Test on MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
overrideo: true
target: x86_64-apple-darwin
- uses: actions-rs/cargo@v1
with:
command: test