-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.16 KB
/
reg.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
name: Visual Regression Testing
## プルリクエストのスクリーンショットを保存するワークフロー
on:
pull_request:
types: [opened, reopened]
jobs:
reg-screenshot-test:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
actions: read # for downloading artifacts
contents: write # for pushing screenshot-diff to companion branch
pull-requests: write # for creating a comment on pull requests
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 17
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.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@87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6 # v2.10.0
with:
gradle-version: wrapper
- name: create the current snapshot
run: |
./gradlew recordRoborazziDebug --stacktrace
- name: run reg
run: |
yarn run reg-suit run --test