Browse Source

make workflow fail if tests fail

ell 1 year ago
parent
commit
63d303a22f
1 changed files with 17 additions and 0 deletions
  1. 17 0
      .github/workflows/main.yml

+ 17 - 0
.github/workflows/main.yml

@@ -134,6 +134,12 @@ jobs:
       with:
       with:
         name: love-x86_64-AppImage-debug
         name: love-x86_64-AppImage-debug
         path: love-${{ github.sha }}.AppImage-debug.tar.gz
         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:
   windows-os:
     runs-on: windows-latest
     runs-on: windows-latest
     permissions:
     permissions:
@@ -359,6 +365,12 @@ jobs:
       with:
       with:
         name: test-output-windows-${{ steps.vars.outputs.arch }}-opengles-${{ steps.report2.outputs.conclusion }}
         name: test-output-windows-${{ steps.vars.outputs.arch }}-opengles-${{ steps.report2.outputs.conclusion }}
         path: test-output-windows-${{ steps.vars.outputs.arch }}-opengles.zip
         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
 #    # install vulkan
 #    - name: Install Vulkan
 #    - name: Install Vulkan
 #      if: steps.vars.outputs.arch != 'ARM64'
 #      if: steps.vars.outputs.arch != 'ARM64'
@@ -447,6 +459,11 @@ jobs:
       with:
       with:
         name: test-output-macos-opengl-${{ steps.report1.outputs.conclusion }}
         name: test-output-macos-opengl-${{ steps.report1.outputs.conclusion }}
         path: test-output-macos-opengl.zip
         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:
   iOS-Simulator:
     runs-on: macos-latest
     runs-on: macos-latest
     steps:
     steps: