Skip to content

Ubuntu QA Maven build #2435

Ubuntu QA Maven build

Ubuntu QA Maven build #2435

Workflow file for this run

name: 'Ubuntu QA Maven build'
env:
MAVEN_OPTS: -Djava.awt.headless=true
MAVEN_VERSION: '3.9.8'
concurrency: # More info: https://stackoverflow.com/a/68422069/253468
group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
cancel-in-progress: true
on:
pull_request:
workflow_dispatch:
jobs:
build:
name: 'QA check'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
deny-licenses: GPL-2.0+, AGPL-3.0+
comment-summary-in-pr: on-failure
- name: 'Set up JDK'
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: 'Set up Maven'
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ env.MAVEN_VERSION }}
- name: 'QA build with Maven'
run: mvn -B -V -fae -DskipQA=false -Dfmt.action=check -Dpom.fmt.action=verify -Ddocker.skip=true -DskipTests -DskipITs clean install
- uses: lcollins/[email protected]
if: always()
with:
path: '**/pmd.xml'
fail-on-violation: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Cleanup snapshots'
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}