Skip to content

Commit

Permalink
Disable comments to reduce noise (see EnricoMi/publish-unit-test-resu…
Browse files Browse the repository at this point in the history
…lt-action#300), also increase noise in check list by adding Gradle Build Scans
  • Loading branch information
TWiStErRob committed Jun 4, 2022
1 parent 27a4816 commit f244269
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ jobs:
name: Unit Test Results
path: ${{ github.workspace }}/**/build/reports/tests/*/

- name: Publish "Unit Results" check suite and "Unit Test Results" comment.
- name: Publish "Unit Results" check suite.
if: success() || failure()
uses: EnricoMi/publish-unit-test-result-action@v1
with:
check_name: "🔔 Test: Unit Results"
comment_title: Unit Test Results
comment_mode: off
report_individual_runs: true
test_changes_limit: 0
files: ${{ github.workspace }}/**/build/test-results/*/TEST-*.xml
Expand Down
48 changes: 40 additions & 8 deletions .github/workflows/Screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true
jobs:
record-base:
name: 📸 Record ${{ github.event.pull_request.base.ref }} Screenshots
name: 📸 Record ${{ github.event.pull_request.base.ref }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -49,11 +49,27 @@ jobs:
./gradlew
--no-daemon
--no-build-cache
--continue
--stacktrace
--continue
--scan
recordPaparazziDebug
-Pnet.twisterrob.build.screenshot-tests=true
- name: Publish "Gradle" result and Build Scan URL.
if: success() || failure()
uses: actions/github-script@v6
with:
script: |
github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: "${{ steps.gradle.outputs.result-success }}" == "true" ? "success" : "failure",
context: "Screenshot Tests / Record / Gradle",
description: "${{ steps.gradle.outputs.result-text }}",
target_url: "${{ steps.gradle.outputs.build-scan-url }}"
});
- name: Upload "Screenshot Golden Values" artifact.
if: success()
uses: actions/upload-artifact@v2
Expand All @@ -72,19 +88,19 @@ jobs:
${{ github.workspace }}/**/build/reports/paparazzi/
${{ github.workspace }}/**/build/test-results/*/TEST-*.xml
- name: Publish "Screenshot Record Results" check suite and "Screenshot Record Results" comment.
- name: Publish "Screenshot Record Results" check suite.
if: success() || failure()
uses: EnricoMi/publish-unit-test-result-action@v1
with:
check_name: "🔔 Test: Screenshot Record Results"
comment_title: Screenshot Record Results
comment_mode: off
report_individual_runs: true
test_changes_limit: 0
files: ${{ github.workspace }}/**/build/test-results/*/TEST-*.xml

verify-pr:
needs: record-base
name: 🧪 Screenshot Tests
name: 🧪 Verify ${{ github.event.pull_request.head.ref }}
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -128,11 +144,27 @@ jobs:
./gradlew
--no-daemon
--no-build-cache
--continue
--stacktrace
--continue
--scan
verifyPaparazziDebug
-Pnet.twisterrob.build.screenshot-tests=true
- name: Publish "Gradle" result and Build Scan URL.
if: success() || failure()
uses: actions/github-script@v6
with:
script: |
github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: "${{ steps.gradle.outputs.result-success }}" == "true" ? "success" : "failure",
context: "Screenshot Tests / Verify / Gradle",
description: "${{ steps.gradle.outputs.result-text }}",
target_url: "${{ steps.gradle.outputs.build-scan-url }}"
});
- name: Upload "Screenshot Test Results" artifact.
if: success() || failure()
uses: actions/upload-artifact@v2
Expand All @@ -146,12 +178,12 @@ jobs:
${{ github.workspace }}/**/out/failures/delta-*.png
${{ github.workspace }}/**/out/failures/*.png
- name: Publish "Screenshot Verify Results" check suite and "Screenshot Verify Results" comment.
- name: Publish "Screenshot Verify Results" check suite.
if: success() || failure()
uses: EnricoMi/publish-unit-test-result-action@v1
with:
check_name: "🔔 Test: Screenshot Verify Results"
comment_title: Screenshot Verify Results
comment_mode: off
report_individual_runs: true
test_changes_limit: 0
files: ${{ github.workspace }}/**/build/test-results/*/TEST-*.xml

0 comments on commit f244269

Please sign in to comment.