From 32d4cabca48d6ed128f9613478505b8aadf53582 Mon Sep 17 00:00:00 2001 From: Ollie Lansdell Date: Tue, 30 Jan 2024 02:15:19 +0000 Subject: [PATCH] Tests: Add regression tests to default CI Action --- .github/workflows/test_ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_ci.yml b/.github/workflows/test_ci.yml index 20d0af58..90b06570 100644 --- a/.github/workflows/test_ci.yml +++ b/.github/workflows/test_ci.yml @@ -1,7 +1,7 @@ name: Test CI on: - workflow_dispatch: + workflow_dispatch: # Note: Visual regression tests require a PR or Commit push: pull_request: @@ -26,14 +26,16 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Setup Gradle Caching - uses: gradle/actions/setup-gradle@v3 - - name: Run ${{ matrix.os }} General Tests - Headless uses: coactions/setup-xvfb@v1 with: run: ./gradlew testAll + - name: Run ${{ matrix.os }} Regression Tests - Headless + uses: coactions/setup-xvfb@v1 + with: + run: ./gradlew regressionTest + - name: Generate ${{ matrix.os }} JUnit Test Reports uses: dorny/test-reporter@v1 if: success() || failure() @@ -41,3 +43,12 @@ jobs: name: ${{ matrix.os }} Tests path: '**/build/test-results/**/TEST-*.xml' reporter: java-junit + + - name: Generate ${{ matrix.os }} Regression Test Reports + if: success() || failure() + uses: reg-viz/reg-actions@v2 + with: + github-token: "${{ secrets.ACCESS_TOKEN }}" + image-directory-path: "./tests/images/" + artifact-name: "reg-${{ matrix.os }}" +