Merge pull request #335 from droidknights/2024/feature/sponsor #21
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: StoreScreenshot | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
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@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
# Better than caching and/or extensions of actions/setup-java | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@4c39dd82cd5e1ec7c6fa0173bb41b4b6bb3b86ff # v3.3.2 | |
with: | |
gradle-version: wrapper | |
- name: record screenshot | |
id: record-test | |
run: | | |
# Use --rerun-tasks to disable cache for test task | |
./gradlew recordRoborazziDebug --stacktrace --rerun-tasks | |
- 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 |