diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74a6f6c..29e3642 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,10 @@ jobs: uses: gradle/actions/setup-gradle@v5 - name: Publish and release Kotlin artifact - run: ./gradlew :AstrolabeProtocolKotlin:publishAndReleaseToMavenCentral + run: >- + ./gradlew + --no-configuration-cache + :AstrolabeProtocolKotlin:publishAndReleaseToMavenCentral env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} diff --git a/test/ci-workflow.test.mjs b/test/ci-workflow.test.mjs new file mode 100644 index 0000000..93afe8a --- /dev/null +++ b/test/ci-workflow.test.mjs @@ -0,0 +1,12 @@ +import assert from "node:assert/strict"; +import { readFile } from "node:fs/promises"; +import test from "node:test"; + +test("Kotlin publication disables the unsupported configuration cache", async () => { + const workflow = await readFile(".github/workflows/ci.yml", "utf8"); + + assert.match( + workflow, + /--no-configuration-cache\s+:AstrolabeProtocolKotlin:publishAndReleaseToMavenCentral/ + ); +});