rustic/.github/workflows/tests.yaml
2022-08-02 05:57:20 +02:00

40 lines
816 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@v2
- 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@v2
- uses: actions-rs/cargo@v1
with:
command: test