From b0e2596b586e23e8b438a8dee8e206654a7ac76d Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 14 Sep 2022 15:09:14 +0100 Subject: [PATCH] including screenshot verification and error result uploads as part of the test step --- .github/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fb8e3080ae..3ed21f5568 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,6 +30,19 @@ jobs: distribution: 'adopt' java-version: '11' - uses: gradle/gradle-build-action@v2 + + - name: Run screenshot tests + run ./gradlew verifyScreenshots + + - name: Archive Screenshot Results on Error + if: failure() + uses: actions/upload-artifact@v1 + with: + name: screenshot-results + path: | + **/out/failures/ + **/build/reports/tests/*UnitTest/ + - uses: actions/setup-python@v4 with: python-version: 3.8