65 lines
2.7 KiB
YAML
65 lines
2.7 KiB
YAML
name: jpa-next-jpa4
|
|
|
|
# Jakarta Persistence 4.0 compatibility lane (experimental plan Task 7).
|
|
#
|
|
# Non-blocking by design: it reports whether the Stable public API still compiles and whether the
|
|
# selected mapping contracts still hold on JPA 4. It publishes nothing, and a red result here never
|
|
# changes a Stable contract — the 3.2 gate keeps asserting what 3.2 must do, because that is what
|
|
# deployments run.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 4 * * 1'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
jpa4-compatibility:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
continue-on-error: true
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2
|
|
- name: Validate Gradle wrapper
|
|
id: gradle-wrapper-validation
|
|
uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # gradle/actions@v6
|
|
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # actions/setup-java@v4.7.1
|
|
with:
|
|
distribution: temurin
|
|
java-version: "21.0.11+10"
|
|
cache: gradle
|
|
cache-dependency-path: |
|
|
src/**/*.gradle
|
|
src/**/gradle-wrapper.properties
|
|
src/**/gradle.lockfile
|
|
- name: Report Jakarta Persistence 4.0 compatibility
|
|
working-directory: src
|
|
run: >-
|
|
./gradlew
|
|
:adapter:outbound:persistence-jpa:test --tests '*CompatibilityLaneDefinitionTest'
|
|
--no-daemon
|
|
--stacktrace
|
|
- name: Record what this lane did and did not execute
|
|
if: always()
|
|
run: |
|
|
mkdir -p compatibility-evidence
|
|
{
|
|
echo "target=Jakarta Persistence 4"
|
|
echo "target-coordinate=jakarta.persistence:jakarta.persistence-api:4.x"
|
|
echo "status=NOT_EXECUTABLE"
|
|
echo "reason=the JPA 4 API is not on any configuration this build resolves, so nothing has been compiled against it"
|
|
echo "what-ran=the current runtime's own policy and lane-definition tests"
|
|
echo "sha=${{ github.sha }}"
|
|
} > compatibility-evidence/status.properties
|
|
echo "::notice::Jakarta Persistence 4 compatibility is NOT_EXECUTABLE: the JPA 4 API is not on any configuration this build resolves, so nothing has been compiled against it"
|
|
- name: Upload the compatibility status
|
|
if: always()
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # actions/upload-artifact@v4.6.2
|
|
with:
|
|
name: compatibility-status-jakarta-persistence-4
|
|
path: compatibility-evidence/status.properties
|
|
retention-days: 30
|
|
if-no-files-found: error
|