Update peter-evans/find-comment digest to e3c124b #1008
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ScreenShotTest | |
on: | |
pull_request: | |
jobs: | |
screenshot-test: | |
runs-on: macos-12 | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Validate Gradle Wrapper | |
uses: gradle/[email protected] | |
- name: Copy CI gradle.properties | |
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Download Screenshots | |
id: download-artifact | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: UpdateScreenshots.yml | |
name: screenshots | |
path: preview-screenshots/src/test/snapshots/images | |
- name: Run screenshot tests | |
id: verifyPaparazziDebug | |
continue-on-error: true | |
run: ./gradlew preview-screenshots:verifyPaparazziDebug | |
- name: Save PR number | |
run: | | |
mkdir -p ./preview-screenshots/out/failures | |
echo ${{ github.event.number }} > ./preview-screenshots/out/failures/NR | |
- name: Error Screenshot tests | |
if: ${{ hashFiles('preview-screenshots/out/failures/*.png') != '' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: screenshot-test-results | |
path: preview-screenshots/out/failures |