-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 1.19 KB
/
generate-paparazzi-golden-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
fetch-depth: 0
persist-credentials: false
- 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 Changes
run: .github/workflows/scripts/commit-changes.sh
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}