diff --git a/.github/workflows/compose_screenshot_test.yml b/.github/workflows/compose_screenshot_test.yml index a0e875cf40..32463a445e 100644 --- a/.github/workflows/compose_screenshot_test.yml +++ b/.github/workflows/compose_screenshot_test.yml @@ -19,8 +19,21 @@ jobs: distribution: 'adopt' java-version: '18' - - name: Gradle cache - uses: gradle/actions/setup-gradle@v4 - + - name: Enable Gradle Wrapper caching (optimization) + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- - name: Run Compose preview screenshot tests - run: ./gradlew validateDebugScreenshotTest + run: ./gradlew :screen:attributions:validateDebugScreenshotTest + + - name: Upload build reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: my-artifact + path: screen/attributions/build/reports \ No newline at end of file