diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3768cae..19e64418 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: run: cargo build --features "${{ matrix.features }}" - name: Cargo test - run: cargo test --features "${{ matrix.features }}" + run: cargo test --features blahbalh "${{ matrix.features }}" env: RUST_BACKTRACE: 1 @@ -85,16 +85,17 @@ jobs: build_result: name: Result runs-on: ubuntu-latest + if: always() needs: - "linux-ci" - "mac-ci" - "windows-ci" steps: - - name: Mark the job as successful + - name: Success run: exit 0 - if: success() - - name: Mark the job as unsuccessful + if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + - name: Failure run: exit 1 - if: "!success()" + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')