From 2cf17ac04197249389d43594e5c7c7c92b62811f Mon Sep 17 00:00:00 2001 From: Gilberto Caetano de Andrade <3083703+gilbertoca@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:44:28 -0300 Subject: [PATCH 1/2] Create Maven CI workflow for Java versions and branches Create Maven CI workflow for Java versions and branches --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 000000000..cd61d52a9 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java-version: [ 17, 21 ] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + cache: maven + - name: Build + run: mvn -T 4 --batch-mode --no-transfer-progress --update-snapshots verify + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From a23a5c466af55c1622e43da28bed369dd0d81405 Mon Sep 17 00:00:00 2001 From: Gilberto Caetano de Andrade <3083703+gilbertoca@users.noreply.github.com> Date: Tue, 1 Sep 2026 11:47:21 -0300 Subject: [PATCH 2/2] Remove optional dependency graph update step --- .github/workflows/maven.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cd61d52a9..1b891fe95 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,7 +29,4 @@ jobs: distribution: 'temurin' cache: maven - name: Build - run: mvn -T 4 --batch-mode --no-transfer-progress --update-snapshots verify - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 + run: mvn -T 4 --batch-mode --no-transfer-progress --update-snapshots verify