Skip to content

Commit

Permalink
Tests: Add regression tests to default CI Action
Browse files Browse the repository at this point in the history
  • Loading branch information
SonarSonic authored Jan 30, 2024
1 parent 9d68d8e commit 32d4cab
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test CI

on:
workflow_dispatch:
workflow_dispatch: # Note: Visual regression tests require a PR or Commit
push:
pull_request:

Expand All @@ -26,18 +26,29 @@ 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()
with:
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 }}"

0 comments on commit 32d4cab

Please sign in to comment.