Generate Paparazzi Golden Images #4
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: 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 |