on: [push, pull_request]
name: Continuous Integration
jobs:
check:
name: Check
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: check
test:
name: Test Suite ${{ matrix.os }}
needs: check
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Ubuntu, macOS, Windows]
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