name: CI
on:
push:
branches:
pull_request:
branches:
jobs:
test:
strategy:
matrix:
rust:
- stable
- nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ matrix.rust }}
- name: Run test suite
run: cargo test
ci-success:
name: CI
if: ${{ success() }}
needs:
- test
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0