Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
12 changes: 12 additions & 0 deletions test/ci-workflow.test.mjs
Original file line number Diff line number Diff line change
@@ -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/
);
});