2020-06-24 18:22:51 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-05-07 21:40:09 +00:00
|
|
|
- staging
|
|
|
|
- trying
|
2020-06-24 18:22:51 +00:00
|
|
|
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 }}
|
2021-06-03 11:12:38 +00:00
|
|
|
components: rustfmt, clippy
|
2020-06-24 18:22:51 +00:00
|
|
|
default: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --all-features --all-targets
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2020-06-25 11:07:13 +00:00
|
|
|
args: --all-features --doc
|
2020-07-01 20:42:14 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --no-default-features
|
2021-06-16 18:26:16 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: -- --check
|
2021-06-03 11:12:38 +00:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|