Skip to content

Commit

Permalink
Update the main CI to run more tests with minimum dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Mar 21, 2022
1 parent 47c73ba commit 38b6363
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
strategy:
matrix:
rust:
- nightly
- stable
- beta
- 1.51.0 # MSRV (for both no features and "future")
- 1.51.0 # MSRV
- nightly # For checking minimum version dependencies.

steps:
- name: Checkout Moka
Expand All @@ -45,6 +45,13 @@ jobs:
with:
command: clean

- name: Downgrade dependencies to minimal versions
uses: actions-rs/cargo@v1
if: ${{ matrix.rust == 'nightly' }}
with:
command: update
args: -Z minimal-versions

- name: Build (no features)
uses: actions-rs/cargo@v1
with:
Expand All @@ -58,18 +65,12 @@ jobs:

- name: Run tests (future feature)
uses: actions-rs/cargo@v1
if: ${{ matrix.rust != '1.45.2' }}
with:
command: test
args: --features future

- name: Run tests (dash feature)
uses: actions-rs/cargo@v1
if: ${{ matrix.rust != '1.45.2' }}
with:
command: test
args: --features dash

- name: Check minimal versions
if: ${{ matrix.rust == 'nightly' }}
run: cargo clean; cargo update -Z minimal-versions; cargo check

0 comments on commit 38b6363

Please sign in to comment.