rustic/.github/workflows/tests.yaml
2022-06-13 21:34:25 +02:00

41 lines
817 B
YAML

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: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: test
test_macos:
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: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: test