only doctest on modern Rust

This commit is contained in:
Aleksey Kladov 2021-11-12 14:05:15 +03:00
parent db56a2d8ce
commit d41cc25cd7

View File

@ -4,6 +4,24 @@ on: [push, pull_request]
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo test
run: cargo test
test-msrv:
name: Test Suite
runs-on: ubuntu-latest
strategy:
@ -25,7 +43,9 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo test
run: cargo test
# Exclude doctests here, as we don't want to clutter docs themselves
# with backwards compatibility workarounds.
run: cargo test --lib
nightly:
name: Test Suite (nightly features)