From 7152dc73aa351a71b725244a84896a96e0e216ba Mon Sep 17 00:00:00 2001 From: ez-plugins Date: Fri, 22 May 2026 06:19:04 +0200 Subject: [PATCH] ci: add Paper 1.21.4 / 1.21.11 smoke test matrix with default package job --- .github/workflows/smoke-tests.yml | 60 +++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 8c27116..9440a34 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -7,41 +7,79 @@ on: jobs: smoke: + name: Smoke (${{ matrix.name }}) runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - name: "Paper 1.21.4" + paper-version: "1.21.4-R0.1-SNAPSHOT" + mockbukkit-artifact: "mockbukkit-v1.21" + mockbukkit-version: "4.101.0" + java: "21" + - name: "Paper 1.21.11" + paper-version: "1.21.11-R0.1-SNAPSHOT" + mockbukkit-artifact: "mockbukkit-v1.21" + mockbukkit-version: "4.101.0" + java: "21" steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up JDK 21 + - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: distribution: temurin - java-version: '21' + java-version: ${{ matrix.java }} - name: Cache Maven local repository uses: actions/cache@v4 with: path: ~/.m2/repository - key: ${{ runner.os }}-m2-smoke-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-m2-smoke-${{ matrix.name }}-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-m2-smoke- - - - name: Build plugin - run: mvn -B -DskipTests package + ${{ runner.os }}-m2-smoke-${{ matrix.name }}- - name: Run smoke tests run: | mvn -B \ - -Dpaper.version=1.21.11-R0.1-SNAPSHOT \ - -Dmockbukkit.artifactId=mockbukkit-v1.21 \ - -Dmockbukkit.version=4.101.0 \ + -Dpaper.version=${{ matrix.paper-version }} \ + -Dmockbukkit.artifactId=${{ matrix.mockbukkit-artifact }} \ + -Dmockbukkit.version=${{ matrix.mockbukkit-version }} \ -Dtest=EzShopsPluginFeatureTest,PluginLifecycleFeatureTest,EzShopsAPITest \ test + package: + name: Package (default) + runs-on: ubuntu-latest + needs: smoke + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "21" + + - name: Cache Maven local repository + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-m2- + + - name: Build plugin (default compatibility) + run: mvn -B -DskipTests package + - name: Upload jar artifact uses: actions/upload-artifact@v4 with: - name: EzShops-smoke-${{ github.sha }} + name: EzShops-${{ github.sha }} path: target/*.jar retention-days: 7