From f4125d78c28146dbd8b9b8cae49da4774ea22bb2 Mon Sep 17 00:00:00 2001 From: Francisco J Lopez-Pellicer Date: Thu, 8 Oct 2026 15:51:54 +0200 Subject: [PATCH] ci: publish sitmun-shared to mavenLocal before build compileClasspath needs org.sitmun:sitmun-proxy-contract from mavenLocal, which CI never published. Mirror the backend-core workflow step so CI and CodeQL assemble can resolve it. --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/codeql-analysis.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1f5692..d863481 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,12 @@ jobs: distribution: temurin java-version: "17" cache: gradle + - name: Publish sitmun-shared to the local Maven repository + env: + SHARED_REF: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }} + run: | + git clone --depth 1 --branch "$SHARED_REF" https://github.com/sitmun/sitmun-shared.git "$RUNNER_TEMP/sitmun-shared" + chmod +x "$RUNNER_TEMP/sitmun-shared/gradlew" + "$RUNNER_TEMP/sitmun-shared/gradlew" -p "$RUNNER_TEMP/sitmun-shared" publishToMavenLocal - run: chmod +x gradlew - run: ./gradlew build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 396676f..0b9f443 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -29,6 +29,13 @@ jobs: distribution: temurin java-version: "17" cache: gradle + - name: Publish sitmun-shared to the local Maven repository + env: + SHARED_REF: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }} + run: | + git clone --depth 1 --branch "$SHARED_REF" https://github.com/sitmun/sitmun-shared.git "$RUNNER_TEMP/sitmun-shared" + chmod +x "$RUNNER_TEMP/sitmun-shared/gradlew" + "$RUNNER_TEMP/sitmun-shared/gradlew" -p "$RUNNER_TEMP/sitmun-shared" publishToMavenLocal - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: