Skip to content

Bump version to v1.2.0 for release #80

Bump version to v1.2.0 for release

Bump version to v1.2.0 for release #80

Workflow file for this run

name: CI Tests and Coverage
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
permissions:
contents: read
jobs:
tests:
name: Tests and Coverage
runs-on: ubuntu-24.04
timeout-minutes: 20
permissions:
contents: read
packages: read
env:
PACKAGES_USER: ${{ secrets.HAUNTEDMC_PACKAGES_USERNAME }}
PACKAGES_TOKEN: ${{ secrets.HAUNTEDMC_PACKAGES_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Validate package token
shell: bash
run: |
test -n "$PACKAGES_USER" \
|| { echo "Missing secret HAUNTEDMC_PACKAGES_USERNAME." >&2; exit 1; }
test -n "$PACKAGES_TOKEN" \
|| { echo "Missing secret HAUNTEDMC_PACKAGES_TOKEN (requires read:packages)." >&2; exit 1; }
- name: Set up JDK 25
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: temurin
java-version: "25"
cache: maven
server-id: github
server-username: PACKAGES_USER
server-password: PACKAGES_TOKEN
- name: Run Maven Verify
id: tests
run: ./mvnw -U -B -ntp verify
- name: Print failing test reports
if: failure() && steps.tests.outcome == 'failure'
shell: bash
run: |
find . -type f \( -path '*/target/surefire-reports/*.txt' -o -path '*/target/failsafe-reports/*.txt' \) -print0 \
| sort -z \
| xargs -0 -r -n1 sh -c 'echo "::group::$0"; cat "$0"; echo "::endgroup::"'
- name: Upload JaCoCo report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: jacoco-report
if-no-files-found: warn
path: "**/target/site/jacoco"
- name: Upload test reports
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-reports
if-no-files-found: warn
path: |
**/target/surefire-reports
**/target/failsafe-reports
platform-acceptance:
name: Paper and Velocity Platform Acceptance
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: read
packages: read
env:
PACKAGES_USER: ${{ secrets.HAUNTEDMC_PACKAGES_USERNAME }}
PACKAGES_TOKEN: ${{ secrets.HAUNTEDMC_PACKAGES_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Validate package token
shell: bash
run: |
test -n "$PACKAGES_USER" \
|| { echo "Missing secret HAUNTEDMC_PACKAGES_USERNAME." >&2; exit 1; }
test -n "$PACKAGES_TOKEN" \
|| { echo "Missing secret HAUNTEDMC_PACKAGES_TOKEN (requires read:packages)." >&2; exit 1; }
- name: Set up JDK 25
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: temurin
java-version: "25"
cache: maven
server-id: github
server-username: PACKAGES_USER
server-password: PACKAGES_TOKEN
- name: Run Paper and Velocity acceptance
env:
PLATFORM_ACCEPTANCE_WORK_DIRECTORY: ${{ runner.temp }}/featureframework-platform-acceptance
run: ./mvnw -U -B -ntp -Pplatform-acceptance verify
- name: Upload platform acceptance logs
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: featureframework-platform-acceptance-logs
if-no-files-found: warn
path: |
${{ runner.temp }}/featureframework-platform-acceptance/paper/paper.log
${{ runner.temp }}/featureframework-platform-acceptance/velocity/velocity.log