Skip to content

Commit

Permalink
Show enabling of nightly tests as a CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 19, 2023
1 parent 0010b0f commit 7aaa03d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,18 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [beta, stable, 1.56.0]
include:
- rust: nightly
rustflags: --cfg thiserror_nightly_testing
rust: [nightly, beta, stable, 1.56.0]
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: rust-src
- name: Enable nightly-only tests
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=thiserror_nightly_testing >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- run: cargo test --all
env:
RUSTFLAGS: ${{matrix.rustflags}} ${{env.RUSTFLAGS}}

msrv:
name: Rust 1.31.0
Expand Down

0 comments on commit 7aaa03d

Please sign in to comment.