Skip to content

Commit

Permalink
split testing so that there is a separate test for minimum supported …
Browse files Browse the repository at this point in the history
…rust version

- this has to exclude integrations/tide as an indirect dependency requires rust 1.59.0
  • Loading branch information
urkle committed Jun 3, 2022
1 parent d0f7097 commit 7caff32
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand All @@ -36,6 +36,33 @@ jobs:
- 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 --exclude async-graphql-tide --all-features
- name: Build
run: cargo build --exclude async-graphql-tide --all --verbose
- name: Run tests
run: cargo test --exclude async-graphql-tide --all --all-features
- name: Clean
run: cargo clean

rustfmt:
name: Run rustfmt - Rust (${{ matrix.rust }}) on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 7caff32

Please sign in to comment.