name: CI
on:
push:
branches: [ master ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain:
- 1.43.0
- stable
- beta
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
default: true
profile: minimal
- name: stable test
uses: actions-rs/cargo@v1
if: matrix.toolchain != 'nightly'
with:
command: test
- name: nightly test
uses: actions-rs/cargo@v1
if: matrix.toolchain == 'nightly'
with:
command: test
args: --features nightly