1 Commits
Author SHA1 Message Date
asminme 2693b96836 Build artifact once and verify tests on Java 17 and 21
Build Plugin / build-and-release (push) Successful in 6m6s
2026-11-23 04:55:55 +01:00
2 changed files with 13 additions and 9 deletions

No files matched your search

+12 -8
View File
@@ -15,20 +15,17 @@ concurrency:
jobs: jobs:
build-and-release: build-and-release:
runs-on: docker-builder runs-on: docker-builder
strategy:
matrix:
java: ['17', '21']
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Java ${{ matrix.java }} - name: Set up Java 17
uses: actions/setup-java@v5 uses: actions/setup-java@v5
with: with:
distribution: temurin distribution: temurin
java-version: ${{ matrix.java }} java-version: '17'
- name: Install Maven 3.9.9 - name: Install Maven 3.9.9
run: | run: |
@@ -55,11 +52,19 @@ jobs:
echo "version=$version" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT"
echo "tag=v$version" >> "$GITHUB_OUTPUT" echo "tag=v$version" >> "$GITHUB_OUTPUT"
- name: Build plugin - name: Build and test plugin on Java 17
run: mvn --batch-mode clean verify -Drevision=${{ steps.version.outputs.version }} run: mvn --batch-mode clean verify -Drevision=${{ steps.version.outputs.version }}
- name: Set up Java 21 for runtime check
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
- name: Verify tests on Java 21
run: mvn --batch-mode surefire:test -Drevision=${{ steps.version.outputs.version }}
- name: Prepare release notes - name: Prepare release notes
if: ${{ matrix.java == '17' }}
shell: bash shell: bash
env: env:
VERSION: ${{ steps.version.outputs.version }} VERSION: ${{ steps.version.outputs.version }}
@@ -85,7 +90,6 @@ jobs:
} > release-body.md } > release-body.md
- name: Create Gitea release and upload plugin - name: Create Gitea release and upload plugin
if: ${{ matrix.java == '17' }}
env: env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_SERVER_URL: ${{ gitea.server_url }}
+1 -1
View File
@@ -11,4 +11,4 @@
- Bezpieczny zapis grup do `groups.yml` z kopią zapasową i odtwarzanie stanu przy ładowaniu chunków. - Bezpieczny zapis grup do `groups.yml` z kopią zapasową i odtwarzanie stanu przy ładowaniu chunków.
- Czyszczenie nieaktualnych lokalizacji przy niszczeniu, wybuchach, przepływie cieczy i ruchu tłoków. - Czyszczenie nieaktualnych lokalizacji przy niszczeniu, wybuchach, przepływie cieczy i ruchu tłoków.
- Testy jednostkowe modelu oraz workflow Gitea Actions budujący i publikujący release. - Testy jednostkowe modelu oraz workflow Gitea Actions budujący i publikujący release.
- Wsparcie runtime Java 17 i Java 21; CI buduje i testuje plugin na obu wersjach. - Wsparcie runtime Java 17 i Java 21; CI buduje plugin na Javie 17 i weryfikuje testy na Javie 21.