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