[bugfix] Correct the difference between QName#getStringValue() and QN… #1016
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test & documentation | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
env: | |
MAVEN_OPTS: -XX:StartFlightRecording=maxsize=5g,disk=true,dumponexit=true,settings=default,filename=./ -DtrimStackTrace=false -D'maven.resolver.transport=wagon' | |
DEV_JDK: '17' | |
jobs: | |
license: | |
name: License check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ env.DEV_JDK }} | |
cache: 'maven' | |
- run: mvn -V -B license:check | |
timeout-minutes: 60 | |
dependencies: | |
name: Dependency checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ env.DEV_JDK }} | |
cache: 'maven' | |
- run: mvn -V -B dependency-check:check | |
timeout-minutes: 60 | |
test: | |
name: ${{ matrix.os }} Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ env.DEV_JDK }} | |
cache: 'maven' | |
- name: Install Maven Daemon | |
id: install-mvnd | |
uses: ./.github/actions/install-mvnd | |
with: | |
version: '1.0-m7' | |
file-version-suffix: '-m39' | |
cache: 'true' | |
- name: Maven Build | |
timeout-minutes: 10 | |
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B -T 1C compile test-compile -DtrimStackTrace=false -D'dependency-check.skip' -D'license.skip' | |
- name: Maven Test | |
timeout-minutes: 60 | |
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B verify -DtrimStackTrace=false -D'dependency-check.skip' -D'license.skip' | |
- name: Javadoc (Linux only) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B -q -T 1C install javadoc:javadoc -DskipTests -D'dependency-check.skip' -D'license.skip' --projects '!exist-distribution,!exist-installer' --also-make | |
- name: Maven Code Coverage (Develop branch on Linux only) | |
if: ${{ github.ref == 'refs/heads/develop' && matrix.os == 'ubuntu-latest' }} | |
env: | |
CI_NAME: github | |
BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} | |
CI_BUILD_NUMBER: ${{ github.run_id }} | |
CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
run: ${{ steps.install-mvnd.outputs.mvnd-dir }}/mvnd -V -B jacoco:report coveralls:report | |
- name: Archive build logs | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ runner.os }}-build-logs | |
retention-days: 5 | |
path: | | |
**/*.jfr | |
**/hs_err_pid*.log | |
**/target/surefire-reports/* |