From 7caff324d7fbbb31e8d91b9c102009578ccf4375 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Wed, 1 Jun 2022 11:24:24 -0400 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c6fd41b5..1f10445d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }}