Skip to content

Commit

Permalink
Generate new screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaygaba committed Jun 6, 2024
1 parent 81e9698 commit 64a3336
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,37 +129,38 @@ jobs:
disable-animations: true
script: ./gradlew connectedCheck --no-daemon --stacktrace -PuseKsp=true

- name: Run Screenshot Tests
# - name: Run Screenshot Tests
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# force-avd-creation: false
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: true
# script: ./gradlew executeScreenshotTests -PdirectorySuffix=Api${{ matrix.api-level }} -PprintBase64
#
#
# - name: Upload screenshot testing report
# uses: actions/upload-artifact@v3
# with:
# name: reports
# path: sample/build/reports/shot/debug/Api${{ matrix.api-level }}/verification/
# retention-days: 1

# Uncomment the jobs below if you want to generate and record screenshots. Once you download the
# artifact, place them under sample/screenshots/debug/

- name: Record screenshots
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew executeScreenshotTests -PdirectorySuffix=Api${{ matrix.api-level }} -PprintBase64

script: ./gradlew executeScreenshotTests -PdirectorySuffix=Api${{ matrix.api-level }} -Precord

- name: Upload screenshot testing report
- name: Upload screenshots in an artifact
uses: actions/upload-artifact@v3
with:
name: reports
path: sample/build/reports/shot/debug/Api${{ matrix.api-level }}/verification/
name: Api${{ matrix.api-level }}
path: sample/screenshots/debug/Api${{ matrix.api-level }}
retention-days: 1

# Uncomment the jobs below if you want to generate and record screenshots. Once you download the
# artifact, place them under sample/screenshots/debug/

# - name: Record screenshots
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# target: ${{ matrix.target }}
# arch: x86_64
# script: ./gradlew executeScreenshotTests -PdirectorySuffix=Api${{ matrix.api-level }} -Precord
#
# - name: Upload screenshots in an artifact
# uses: actions/upload-artifact@v3
# with:
# name: Api${{ matrix.api-level }}
# path: sample/screenshots/debug/Api${{ matrix.api-level }}
# retention-days: 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 64a3336

Please sign in to comment.