Skip to content

Commit

Permalink
try add a job update baseline screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacnguyen0809 committed Jul 19, 2024
1 parent 20aace2 commit f3bd598
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/compose_screenshot_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,33 @@ on:
pull_request:

jobs:
update_screenshot:
runs-on: ubuntu-latest
steps:
- name: Checkout GIT
uses: actions/checkout@v4

- name: Setup Java SDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '18'

- name: Enable Gradle Wrapper caching (optimization)
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Generate baseline screenshot
run: ./gradlew updateDebugScreenshotTest

sceenshot_test:
needs: [ update_screenshot ]
runs-on: ubuntu-latest
steps:
- name: Checkout GIT
Expand Down

0 comments on commit f3bd598

Please sign in to comment.