salsa/.github/workflows/test.yml
2021-06-17 15:21:51 +01:00

55 lines
1.1 KiB
YAML

name: Test
on:
push:
branches:
- master
- staging
- trying
pull_request:
paths:
- '**.rs'
- '**/Cargo.*'
jobs:
test:
name: Test
strategy:
matrix:
rust:
- stable
- beta
experimental:
- false
include:
- rust: nightly
experimental: true
continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
default: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all-targets
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --doc
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy