[라이브러리] 디펜던시 최신화 for 2025 Droid Knights #24
Workflow file for this run
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: CompareScreenshot | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: { } | |
jobs: | |
compare-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@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff # v3.3.2 | |
with: | |
gradle-version: wrapper | |
- uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 | |
continue-on-error: true | |
with: | |
name: screenshot | |
workflow: store-screenshot.yml | |
branch: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.event.repository.default_branch }} | |
- name: compare screenshot test | |
id: compare-screenshot-test | |
run: | | |
./gradlew compareRoborazziDebug --stacktrace | |
- uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: screenshot-diff | |
path: | | |
**/build/outputs/roborazzi | |
retention-days: 30 | |
- uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: screenshot-diff-reports | |
path: | | |
**/build/reports | |
retention-days: 30 | |
- uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: screenshot-diff-test-results | |
path: | | |
**/build/test-results | |
retention-days: 30 | |
- name: Save PR number | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
mkdir -p ./pr | |
echo ${{ github.event.number }} > ./pr/NR | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pr | |
path: pr/ |