Skip to content

Commit

Permalink
Updated 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 e472d83
Showing 1 changed file with 11 additions and 44 deletions.
55 changes: 11 additions & 44 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:

permissions: read-all
jobs:
build-ubuntu:
build:

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

steps:
- uses: actions/checkout@v4
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,10 @@ 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@v5
with:
files: target/site/jacoco/jacoco.xml
name: codecov
fail_ci_if_error: true
env:
CODECOV_TOKEN: a7a3a75d-8ee9-483e-8430-59b6b39471e2

0 comments on commit e472d83

Please sign in to comment.