split testing so that there is a separate test for minimum supported rust version
- this has to exclude integrations/tide as an indirect dependency requires rust 1.59.0
This commit is contained in:
parent
3b7ed74d11
commit
93115784f6
|
@ -16,8 +16,8 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# - { rust: stable, os: ubuntu-latest }
|
||||
- { rust: 1.56.1, os: ubuntu-latest }
|
||||
- { rust: stable, os: ubuntu-latest }
|
||||
- { rust: 1.59.0, os: ubuntu-latest }
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
@ -30,9 +30,36 @@ jobs:
|
|||
- name: Build with all features
|
||||
run: cargo build --all-features
|
||||
- name: Build
|
||||
run: cargo build --all --verbose
|
||||
run: cargo build --workspace --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --all --all-features
|
||||
run: cargo test --workspace --all-features
|
||||
- name: Clean
|
||||
run: cargo clean
|
||||
|
||||
tests_min_cmopat:
|
||||
name: Run min rust version tests - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- { rust: 1.56.1, os: ubuntu-latest }
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
override: true
|
||||
# We exclude async-graphql-tide since it indirectly depends on async-global-executor which requires rust 1.59+
|
||||
- name: Build with all features
|
||||
run: cargo build --all-features
|
||||
- name: Build
|
||||
run: cargo build --workspace --exclude async-graphql-tide --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --workspace --exclude async-graphql-tide --all-features
|
||||
- name: Clean
|
||||
run: cargo clean
|
||||
|
||||
|
@ -133,7 +160,7 @@ jobs:
|
|||
run: cargo clippy --all
|
||||
working-directory: ./examples
|
||||
- name: Build examples
|
||||
run: cargo build --all --verbose
|
||||
run: cargo build --workspace --verbose
|
||||
working-directory: ./examples
|
||||
- name: Clean examples
|
||||
run: cargo clean
|
||||
|
|
Loading…
Reference in New Issue