From 2fbac5a08454c7c89289af391e567854985a89b8 Mon Sep 17 00:00:00 2001 From: Simon Anderson Date: Wed, 12 Jun 2024 22:48:53 +1000 Subject: [PATCH] Update maven-build.yml Fully-commented action test on repo --- .github/workflows/maven-build.yml | 45 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 4718a6ce5..2a2fe207c 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,29 +1,30 @@ # 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven -name: Java CI with Maven +# name: Java CI with Maven -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +# on: +# push: +# branches: [ main ] +# pull_request: +# branches: [ main ] -jobs: - build: +# jobs: +# build: - runs-on: ubuntu-latest - strategy: - matrix: - java: [ '17' ] +# runs-on: ubuntu-latest +# strategy: +# matrix: +# java: [ '17' ] + +# steps: +# - uses: actions/checkout@v4 +# - name: Set up JDK ${{matrix.java}} +# uses: actions/setup-java@v4 +# with: +# java-version: ${{matrix.java}} +# distribution: 'adopt' +# cache: maven +# - name: Build with Maven Wrapper +# run: ./mvnw -B package - steps: - - uses: actions/checkout@v4 - - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v4 - with: - java-version: ${{matrix.java}} - distribution: 'adopt' - cache: maven - - name: Build with Maven Wrapper - run: ./mvnw -B package