Skip to content

Commit

Permalink
Merge pull request #2 from DeNA/upload_scrennshot_workflow
Browse files Browse the repository at this point in the history
Add upload_expected_image workflow
  • Loading branch information
tkmnzm authored Mar 29, 2024
2 parents 7f054f5 + 3cfd0c8 commit d2c2c22
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/upload_expected_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 17
uses: actions/setup-java@v3
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: screenshots
path: screenshots/*
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,7 @@ configurations.configureEach {
force("org.objenesis:objenesis:2.6")
}
}

roborazzi {
outputDir.set(rootProject.file("screenshots"))
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g
org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dkotlin.deamon.jvm.options=-Xmx2g

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down

0 comments on commit d2c2c22

Please sign in to comment.