-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5015cbc
commit f63ce93
Showing
3 changed files
with
295 additions
and
295 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
name: CompareScreenshot | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
compare-screenshot-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
|
||
permissions: | ||
contents: read # for clone | ||
actions: write # for upload-artifact | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0 | ||
with: | ||
gradle-version: wrapper | ||
|
||
# Download artifacts | ||
- uses: dawidd6/action-download-artifact@v2 | ||
continue-on-error: true | ||
with: | ||
name: screenshot | ||
workflow: StoreScreenshot.yml | ||
branch: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }} | ||
|
||
- name: compare screenshot test | ||
id: compare-screenshot-test | ||
run: | | ||
./gradlew compareRoborazziDebug --stacktrace | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ always() }} | ||
with: | ||
name: screenshot-diff | ||
path: | | ||
**/build/outputs/roborazzi | ||
retention-days: 30 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: ${{ always() }} | ||
with: | ||
name: screenshot-diff-reports | ||
path: | | ||
**/build/reports | ||
retention-days: 30 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: ${{ always() }} | ||
with: | ||
name: screenshot-diff-test-results | ||
path: | | ||
**/build/test-results | ||
retention-days: 30 | ||
|
||
- name: Save PR number | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
mkdir -p ./pr | ||
echo ${{ github.event.number }} > ./pr/NR | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: pr | ||
path: pr/ | ||
#name: CompareScreenshot | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - main | ||
# pull_request: | ||
# | ||
#permissions: {} | ||
# | ||
#jobs: | ||
# compare-screenshot-test: | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 20 | ||
# | ||
# permissions: | ||
# contents: read # for clone | ||
# actions: write # for upload-artifact | ||
# | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
# | ||
# - name: Set up JDK 17 | ||
# uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 | ||
# with: | ||
# distribution: temurin | ||
# java-version: 17 | ||
# | ||
# - name: Setup Gradle | ||
# uses: gradle/gradle-build-action@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0 | ||
# with: | ||
# gradle-version: wrapper | ||
# | ||
# # Download artifacts | ||
# - uses: dawidd6/action-download-artifact@v2 | ||
# continue-on-error: true | ||
# with: | ||
# name: screenshot | ||
# workflow: StoreScreenshot.yml | ||
# branch: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }} | ||
# | ||
# - name: compare screenshot test | ||
# id: compare-screenshot-test | ||
# run: | | ||
# ./gradlew compareRoborazziDebug --stacktrace | ||
# | ||
# - uses: actions/upload-artifact@v3 | ||
# if: ${{ always() }} | ||
# with: | ||
# name: screenshot-diff | ||
# path: | | ||
# **/build/outputs/roborazzi | ||
# retention-days: 30 | ||
# | ||
# - uses: actions/upload-artifact@v3 | ||
# if: ${{ always() }} | ||
# with: | ||
# name: screenshot-diff-reports | ||
# path: | | ||
# **/build/reports | ||
# retention-days: 30 | ||
# | ||
# - uses: actions/upload-artifact@v3 | ||
# if: ${{ always() }} | ||
# with: | ||
# name: screenshot-diff-test-results | ||
# path: | | ||
# **/build/test-results | ||
# retention-days: 30 | ||
# | ||
# - name: Save PR number | ||
# if: ${{ github.event_name == 'pull_request' }} | ||
# run: | | ||
# mkdir -p ./pr | ||
# echo ${{ github.event.number }} > ./pr/NR | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: pr | ||
# path: pr/ |
Oops, something went wrong.