Skip to content

Commit

Permalink
only doctest on modern Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Nov 12, 2021
1 parent db56a2d commit d41cc25
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit d41cc25

Please sign in to comment.