From 1ad2eb8338a9d24a3f902ad4bd0b1a6367fd4ccd Mon Sep 17 00:00:00 2001 From: King-Koufan <148069250+Koufan-De-King@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:10:32 +0100 Subject: [PATCH 1/2] Created basic workflow develop.yaml --- .github/workflows/develop.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/develop.yaml diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml new file mode 100644 index 0000000..d2324c1 --- /dev/null +++ b/.github/workflows/develop.yaml @@ -0,0 +1,32 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + +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' + cache: maven + - name: Build with Maven + run: cd online-banking-service && mvn clean install + +#Add pmd check From 70a72a9a876e3ebc6ddafe0a7da7e7d3a244c590 Mon Sep 17 00:00:00 2001 From: King-Koufan <148069250+Koufan-De-King@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:15:34 +0100 Subject: [PATCH 2/2] Update develop.yaml --- .github/workflows/develop.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index d2324c1..db997df 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -25,6 +25,7 @@ jobs: uses: actions/setup-java@v4 with: java-version: '17' + distribution: 'temurin' cache: maven - name: Build with Maven run: cd online-banking-service && mvn clean install