From d41cc25cd7fefbd3598eef3c3c9ded9a4bada81c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Nov 2021 14:05:15 +0300 Subject: [PATCH] only doctest on modern Rust --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88d967f..97fcf98 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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)