From 8bfab839b4b2e3569932f09025e41029515633ee Mon Sep 17 00:00:00 2001 From: Sergi Philipsen Date: Wed, 5 Feb 2025 18:13:14 +0100 Subject: [PATCH 1/2] Add Maven build Action for testing --- .github/workflows/maven.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 00000000..550491a2 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package + + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From cf3e834e7c4df40d1f1a6a28a43213d84dccd4b9 Mon Sep 17 00:00:00 2001 From: Sergi Philipsen Date: Wed, 5 Feb 2025 18:29:54 +0100 Subject: [PATCH 2/2] Update maven.yml --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 550491a2..cd35dc04 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v4 with: