Merge pull request #4 from DeNA/visual_regression_ci #2
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: Upload expected image | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
upload-expected-image: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Create screenshots | |
run: | | |
# Create screenshots | |
./gradlew :app:recordRoborazziDemoAnswerDebug | |
# Upload screenshots to GitHub Actions Artifacts | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: expected_screenshots | |
path: screenshots/* |