diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e69de29b..9a69da40 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build + +on: + push: + branches: [ "*" ] + tags: [ "v*.*.*" ] + pull_request: + branches: [ "main" ] + +jobs: + analyze: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 21 + + - name: Cache Local Maven Repo + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: maven-${{ hashFiles('pom.xml') }} + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: java + queries: security-and-quality + + - name: Version + run: mvn help:effective-pom + + - name: Build + run: mvn -B compile + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/pom.xml b/pom.xml index 0dd0469f..75cc8258 100644 --- a/pom.xml +++ b/pom.xml @@ -143,6 +143,11 @@ + + maven-compiler-plugin + 3.13.0 + + org.codehaus.mojo flatten-maven-plugin