Skip to content

add @Composable AutoSizeBox & AutoSizeImage #42

add @Composable AutoSizeBox & AutoSizeImage

add @Composable AutoSizeBox & AutoSizeImage #42

name: CompareScreenshot
on:
push:
branches:
- master
pull_request:
paths:
- 'image-loader/src/**'
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
gradle-version: wrapper
# Download screenshots from main branch
- uses: dawidd6/action-download-artifact@v2
continue-on-error: true
with:
name: screenshot
workflow: StoreScreenshot.yml
branch: master
- name: compare screenshot test
id: compare-screenshot-test
run: ./gradlew compareRoborazzi --stacktrace --info
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: screenshot-diff
path: |
**/build/outputs/roborazzi
retention-days: 30
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: screenshot-diff-reports
path: |
**/build/reports
retention-days: 30
- uses: actions/upload-artifact@v3
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@v3
with:
name: pr
path: pr/