diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e0e163..955c17a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,4 +38,6 @@ jobs: run: > ./gradlew testDebugUnitTest :app:assembleDebug :wheelpicker:assembleDebug :ratingbar:assembleDebug + :modifier-node-annotations:build :modifier-node-processor:build + :modifier-node-sample:assembleDebug :modifier-node-sample:testReleaseUnitTest --no-configuration-cache diff --git a/.github/workflows/dokka.yml b/.github/workflows/dokka.yml index 801da41..3ac2a87 100644 --- a/.github/workflows/dokka.yml +++ b/.github/workflows/dokka.yml @@ -28,6 +28,10 @@ jobs: - name: Generate Dokka HTML - RatingBar run: ./gradlew :ratingbar:dokkaGeneratePublicationHtml --no-configuration-cache + # :modifier-node-processor is internal machinery with no consumer-facing API — not documented. + - name: Generate Dokka HTML - Modifier Node Annotations + run: ./gradlew :modifier-node-annotations:dokkaGeneratePublicationHtml --no-configuration-cache + - name: Deploy Root Index uses: JamesIves/github-pages-deploy-action@v4 with: @@ -50,4 +54,12 @@ jobs: branch: gh-pages folder: ratingbar/build/dokka/html target-folder: ratingbar + clean: false + + - name: Deploy Modifier Node Annotations Docs + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: modifier-node-annotations/build/dokka/html + target-folder: modifier-node-annotations clean: false \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9b482fa..f8c3542 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,8 @@ on: tags: - 'wheelpicker-v*' - 'ratingbar-v*' + - 'modifier-node-annotations-v*' + - 'modifier-node-processor-v*' jobs: publish: @@ -43,10 +45,20 @@ jobs: MODULE="${TAG%-v*}" VERSION="${TAG##*-v}" - if [[ "$MODULE" != "wheelpicker" && "$MODULE" != "ratingbar" ]]; then - echo "Unknown module '$MODULE' derived from tag '$TAG'" >&2 - exit 1 - fi + # Android library modules test the release variant; Kotlin JVM modules have no + # variants, and the processor's real verification lives in :modifier-node-sample. + case "$MODULE" in + wheelpicker|ratingbar) + TEST_TASKS=":$MODULE:testReleaseUnitTest" + ;; + modifier-node-annotations|modifier-node-processor) + TEST_TASKS=":$MODULE:test :modifier-node-sample:testDebugUnitTest :modifier-node-sample:testReleaseUnitTest" + ;; + *) + echo "Unknown module '$MODULE' derived from tag '$TAG'" >&2 + exit 1 + ;; + esac DECLARED_VERSION=$(grep -oP '(?<=val velvetVersion = ")[^"]+' "$MODULE/build.gradle.kts") if [[ "$DECLARED_VERSION" != "$VERSION" ]]; then @@ -56,9 +68,10 @@ jobs: echo "module=$MODULE" >> "$GITHUB_OUTPUT" echo "version=$VERSION" >> "$GITHUB_OUTPUT" + echo "test_tasks=$TEST_TASKS" >> "$GITHUB_OUTPUT" - name: Run module tests - run: ./gradlew :${{ steps.release.outputs.module }}:testReleaseUnitTest --no-configuration-cache + run: ./gradlew ${{ steps.release.outputs.test_tasks }} --no-configuration-cache - name: Publish and release to Maven Central env: diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b86273d..fb7f4a8 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index c92a982..437f0fd 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,11 +6,14 @@