From 8eacd233afcc7c6db42e615f1e786acf60ae9a7f Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Wed, 8 Jun 2022 22:50:40 +0200 Subject: [PATCH] Add tests to CI --- .github/workflows/tests.yaml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..d97eddf --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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