From 63d303a22f641ea93e76517766efed38ec6e5a78 Mon Sep 17 00:00:00 2001 From: ell <77150506+ellraiser@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:15:07 +0000 Subject: [PATCH] make workflow fail if tests fail --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9a4154a8..a6da63566 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -134,6 +134,12 @@ jobs: with: name: love-x86_64-AppImage-debug path: love-${{ github.sha }}.AppImage-debug.tar.gz + - name: Check Tests Passing + if: steps.report1.outputs.conclusion == 'failure' || steps.report2.outputs.conclusion == 'failure' + run: | + echo "${{ steps.report1.outputs.failed }} opengl tests failed" + echo "${{ steps.report2.outputs.failed }} opengles tests failed" + exit 1 windows-os: runs-on: windows-latest permissions: @@ -359,6 +365,12 @@ jobs: with: name: test-output-windows-${{ steps.vars.outputs.arch }}-opengles-${{ steps.report2.outputs.conclusion }} path: test-output-windows-${{ steps.vars.outputs.arch }}-opengles.zip + - name: Check Tests Passing + if: steps.report1.outputs.conclusion == 'failure' || steps.report2.outputs.conclusion == 'failure' + run: | + echo "${{ steps.report1.outputs.failed }} opengl tests failed" + echo "${{ steps.report2.outputs.failed }} opengles tests failed" + exit 1 # # install vulkan # - name: Install Vulkan # if: steps.vars.outputs.arch != 'ARM64' @@ -447,6 +459,11 @@ jobs: with: name: test-output-macos-opengl-${{ steps.report1.outputs.conclusion }} path: test-output-macos-opengl.zip + - name: Check Tests Passing + if: steps.report1.outputs.conclusion == 'failure' + run: | + echo "${{ steps.report1.outputs.failed }} opengl tests failed" + exit 1 iOS-Simulator: runs-on: macos-latest steps: