-
-
Notifications
You must be signed in to change notification settings - Fork 16
66 lines (54 loc) · 1.57 KB
/
StoreScreenshot.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: StoreScreenshot
on:
push:
branches:
- master
pull_request:
paths:
- 'image-loader/src/**'
run-name: "StoreScreenshot by ${{ github.actor }}"
permissions: { }
jobs:
store-screenshot-test:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # for clone
actions: write # for upload-artifact
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: temurin
java-version: 17
# Better than caching and/or extensions of actions/setup-java
- name: Setup Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
with:
gradle-version: wrapper
- name: record screenshot
id: record-test
run: ./gradlew recordRoborazzi --stacktrace
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: screenshot
path: |
**/build/outputs/roborazzi
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: screenshot-reports
path: |
**/build/reports
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: screenshot-test-results
path: |
**/build/test-results
retention-days: 30