Skip to content

Commit

Permalink
Merge branch 'master' into (Improvement)-#O3-3551
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasanka-sack authored Jul 23, 2024
2 parents 0d9fba0 + eabf0d7 commit 94c3f5e
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,22 @@ on:
branches: [ "master" ]

jobs:
java-8:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean install --file pom.xml

java-11:

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn clean install --file pom.xml

java-17:

runs-on: ubuntu-latest
strategy:
matrix:
java-version: [8, 11, 17]

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
cache: maven

- name: Build with Maven
run: mvn clean install --file pom.xml

0 comments on commit 94c3f5e

Please sign in to comment.