Test MSRV with --all-features

This commit is contained in:
Graham Esau 2024-08-24 17:27:04 +01:00
parent 0f6daccc0a
commit dc1245bbd8
2 changed files with 2 additions and 6 deletions

View file

@ -14,16 +14,12 @@ jobs:
- nightly - nightly
include: include:
- rust: 1.65.0 - rust: 1.65.0
test_features: ""
allow_failure: false allow_failure: false
- rust: stable - rust: stable
test_features: "--all-features"
allow_failure: false allow_failure: false
- rust: beta - rust: beta
test_features: "--all-features"
allow_failure: false allow_failure: false
- rust: nightly - rust: nightly
test_features: "--all-features"
allow_failure: true allow_failure: true
fail-fast: false fail-fast: false
steps: steps:
@ -38,7 +34,7 @@ jobs:
continue-on-error: ${{ matrix.allow_failure }} continue-on-error: ${{ matrix.allow_failure }}
working-directory: ./schemars working-directory: ./schemars
- name: Run tests - name: Run tests
run: cargo test --verbose ${{ matrix.test_features }} --no-fail-fast run: cargo test --verbose --all-features --no-fail-fast
continue-on-error: ${{ matrix.allow_failure }} continue-on-error: ${{ matrix.allow_failure }}
working-directory: ./schemars working-directory: ./schemars
- name: Run derive tests - name: Run derive tests

View file

@ -1,5 +1,5 @@
mod util; mod util;
use std::hash::RandomState; use std::collections::hash_map::RandomState;
use indexmap2::{IndexMap, IndexSet}; use indexmap2::{IndexMap, IndexSet};
use schemars::JsonSchema; use schemars::JsonSchema;