Skip to content

Generate Paparazzi Golden Images #4

Generate Paparazzi Golden Images

Generate Paparazzi Golden Images #4

name: Generate Paparazzi Golden Images
env:
# The name of the main module repository
main_project_module: designsystem
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
ci_job:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Generate Golden Images
run: ./gradlew designsystem:recordPaparazziDebug
- uses: actions/upload-artifact@v4
with:
name: GoldenImages
path: designsystem/src/test/snapshots/
if-no-files-found: 'error'
- name: Commit And Push Changes
run: .github/workflows/scripts/commit-and-push.sh