From 59da12e6d62df6fbf0eb347ed76bd808100471fc Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 3 Aug 2022 14:45:25 +0200 Subject: [PATCH] ci: ignore errors on the nightly toolchain --- .github/workflows/ci.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cad8f753f..4901629b1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -211,8 +211,6 @@ jobs: permissions: contents: read - continue-on-error: "${{ matrix.toolchain == 'beta' || matrix.toolchain == 'nightly' }}" - strategy: fail-fast: false # Continue other jobs if one fails to help filling the cache matrix: @@ -262,11 +260,20 @@ jobs: key: ${{ runner.os }}-cargo-build-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }} - name: Test + id: test uses: actions-rs/cargo@v1 with: command: test args: --offline --workspace + # Ignore errors on the nightly toolchain + continue-on-error: "${{ matrix.toolchain == 'nightly' }}" + + - name: Emit error annotation on failures + if: steps.test.outcome == 'failure' + run: | + echo "::error ::Test suite failed on ${{ matrix.toolchain }} toolchain" + coverage: name: Code coverage