Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored Nov 23, 2024
1 parent a49ac05 commit ab516f3
Showing 1 changed file with 6 additions and 42 deletions.
48 changes: 6 additions & 42 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ permissions: read-all
jobs:
build-ubuntu:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [11, 17, 21, 22, 23]

steps:
Expand All @@ -26,47 +27,6 @@ jobs:
- name: Build with Maven
run: mvn test jacoco:report --file pom.xml -B

- uses: codecov/codecov-action@v3
with:
file: target/site/jacoco/jacoco.xml
name: codecov

build-windows:

runs-on: windows-latest
strategy:
matrix:
java: [11, 17, 21, 22, 23]

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: mvn package --file pom.xml -B

build-macos:

runs-on: macOS-latest
strategy:
matrix:
java: [11, 17, 21, 22, 23]

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven
run: mvn package --file pom.xml -B

build-sonar:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,3 +55,7 @@ jobs:
run: mvn -B -f examples/pom.xml package
- name: Build spring-boot
run: mvn -B -f spring-boot-example/pom.xml package
- uses: codecov/codecov-action@v3
with:
file: target/site/jacoco/jacoco.xml
name: codecov

0 comments on commit ab516f3

Please sign in to comment.