Skip to content

Commit

Permalink
Testing useKSP2 useK2Uast
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis committed Feb 24, 2024
1 parent a8938c8 commit b28e7c2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ concurrency:

jobs:
test_and_apk:
name: "Local tests and APKs"
name: "Local tests and APKs [useKSP2=${{ matrix.useKSP2 }}, useK2Uast=${{ matrix.useK2Uast }}]"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
useKSP2: [true, false]
useK2Uast: [true, false]

permissions:
contents: write
Expand Down Expand Up @@ -102,7 +107,7 @@ jobs:
# Run local tests after screenshot tests to avoid wrong UP-TO-DATE. TODO: Ignore screenshots.
- name: Run local tests
if: always()
run: ./gradlew testDemoDebug :lint:test
run: ./gradlew testDemoDebug :lint:test -Dksp.useKSP2=${{ matrix.useKSP2 }} -Dandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Dandroid.experimental.lint.version=8.4.0-alpha11
# Replace task exclusions with `-Pandroidx.baselineprofile.skipgeneration` when
# https://android-review.googlesource.com/c/platform/frameworks/support/+/2602790 landed in a
# release build
Expand All @@ -112,28 +117,29 @@ jobs:
-x pixel6Api33DemoNonMinifiedReleaseAndroidTest
-x collectDemoNonMinifiedReleaseBaselineProfile
-x collectProdNonMinifiedReleaseBaselineProfile
-Dksp.useKSP2=${{ matrix.useKSP2 }} -Dandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Dandroid.experimental.lint.version=8.4.0-alpha11

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v4
with:
name: APKs
name: APKs-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }}
path: '**/build/outputs/apk/**/*.apk'

- name: Upload test results (XML)
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }}
path: '**/build/test-results/test*UnitTest/**.xml'

- name: Check lint
run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint
run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint -Dksp.useKSP2=${{ matrix.useKSP2 }} -Dandroid.lint.useK2Uast=${{ matrix.useK2Uast }} -Dandroid.experimental.lint.version=8.4.0-alpha11

- name: Upload lint reports (HTML)
if: always()
uses: actions/upload-artifact@v4
with:
name: lint-reports
name: lint-reports-${{ matrix.useKSP2 }}-${{ matrix.useK2Uast }}
path: '**/build/reports/lint-results-*.html'

- name: Check badging
Expand Down

0 comments on commit b28e7c2

Please sign in to comment.