From ef5273a10c269a105cb2dad7c639a1ec1526b9e1 Mon Sep 17 00:00:00 2001 From: Sophie Lathouwers Date: Fri, 12 Jan 2024 17:18:29 +0100 Subject: [PATCH 1/3] Create initial workflow --- .github/workflows/maven.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..8f417d0c --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,42 @@ +# 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: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true + MAVEN_CLI_OPTS: --batch-mode --errors --fail-at-end --show-version + +jobs: + build: + runs-on: ubuntu-latest + container: maven:3.8.7-eclipse-temurin-17-alpine + + steps: + - uses: actions/checkout@v4 + - name: Compile test source code with Maven + run: mvn $MAVEN_CLI_OPTS test-compile + verify: + needs: [build] + runs-on: ubuntu-latest + container: maven:3.8.7-eclipse-temurin-17-alpine + + steps: + - name: Run the Maven verify phase + run: mvn $MAVEN_CLI_OPTS 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 c698e9ff544c136e63be51df49e0bca6dea371f7 Mon Sep 17 00:00:00 2001 From: Sophie Lathouwers Date: Mon, 15 Jan 2024 09:33:44 +0100 Subject: [PATCH 2/3] Update maven.yml --- .github/workflows/maven.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8f417d0c..e9a83555 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,15 +27,8 @@ jobs: - uses: actions/checkout@v4 - name: Compile test source code with Maven run: mvn $MAVEN_CLI_OPTS test-compile - verify: - needs: [build] - runs-on: ubuntu-latest - container: maven:3.8.7-eclipse-temurin-17-alpine - - steps: - name: Run the Maven verify phase run: mvn $MAVEN_CLI_OPTS verify - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph From 3c1a1230369f78ca755bf8d87bd8b0432f34f4c1 Mon Sep 17 00:00:00 2001 From: Sophie Lathouwers Date: Mon, 15 Jan 2024 09:52:12 +0100 Subject: [PATCH 3/3] Update maven.yml --- .github/workflows/maven.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e9a83555..170a9c74 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,7 +29,3 @@ jobs: run: mvn $MAVEN_CLI_OPTS test-compile - name: Run the Maven verify phase run: mvn $MAVEN_CLI_OPTS 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