Bump the github-actions group with 2 updates #205
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "6.7" | |
| paths-ignore: | |
| - "README.md" | |
| - "release-notes/*" | |
| pull_request: | |
| branches: | |
| - main | |
| - "6.7" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: 'ubuntu-latest' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # With Woodstox 7.0 can finally test versions past 11 | |
| java_version: ['8', '11', '17', '21'] | |
| env: | |
| JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up JDK | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java_version }} | |
| cache: 'maven' | |
| server-id: central-snapshots | |
| server-username: CI_DEPLOY_USERNAME | |
| server-password: CI_DEPLOY_PASSWORD | |
| - name: Build | |
| run: ./mvnw -B -q -ff -ntp verify | |
| - name: Generate code coverage | |
| if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }} | |
| run: ./mvnw -B -ff -ntp test | |
| - name: Publish code coverage | |
| if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }} | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./target/site/jacoco/jacoco.xml | |
| flags: unittests |