feat: drop the frozen icon library, proven by not changing a single golden #144
This file contains hidden or 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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'app/**' | |
| - 'gradle/**' | |
| - '*.gradle*' | |
| - 'gradle.properties' | |
| - '.github/workflows/ci.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'app/**' | |
| - 'gradle/**' | |
| - '*.gradle*' | |
| - 'gradle.properties' | |
| - '.github/workflows/ci.yml' | |
| concurrency: | |
| group: ci-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-java@v5.6.0 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - uses: gradle/actions/setup-gradle@v6 | |
| - uses: android-actions/setup-android@v4 | |
| - run: ./gradlew jacocoTestReport | |
| # The icon goldens (CashPilot-android-vxb). Roborazzi renders Compose on | |
| # the JVM through Robolectric, so this needs no emulator and no device. | |
| # | |
| # verify, never record: a CI job that RE-RECORDS makes every change agree | |
| # with itself, which is the one outcome a visual gate must never produce. | |
| - name: Verify icon goldens | |
| run: ./gradlew verifyRoborazziDebug | |
| # The diffs are the whole point when this fails -- a red check saying | |
| # "an image changed" with no image is not actionable. | |
| - name: Upload golden diffs | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: roborazzi-diffs | |
| path: app/build/outputs/roborazzi/ | |
| if-no-files-found: ignore | |
| - uses: codecov/codecov-action@v7 | |
| if: github.event_name == 'push' | |
| with: | |
| files: app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml | |
| fail_ci_if_error: false |