Skip to content

Commit e472d83

Browse files
authored
Updated maven.yml
1 parent a49ac05 commit e472d83

File tree

1 file changed

+11
-44
lines changed

1 file changed

+11
-44
lines changed

.github/workflows/maven.yml

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
permissions: read-all
1010
jobs:
11-
build-ubuntu:
11+
build:
1212

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

1819
steps:
1920
- uses: actions/checkout@v4
@@ -26,47 +27,6 @@ jobs:
2627
- name: Build with Maven
2728
run: mvn test jacoco:report --file pom.xml -B
2829

29-
- uses: codecov/codecov-action@v3
30-
with:
31-
file: target/site/jacoco/jacoco.xml
32-
name: codecov
33-
34-
build-windows:
35-
36-
runs-on: windows-latest
37-
strategy:
38-
matrix:
39-
java: [11, 17, 21, 22, 23]
40-
41-
steps:
42-
- uses: actions/checkout@v4
43-
- name: Set up JDK ${{ matrix.java }}
44-
uses: actions/setup-java@v4
45-
with:
46-
distribution: 'corretto'
47-
java-version: ${{ matrix.java }}
48-
cache: 'maven'
49-
- name: Build with Maven
50-
run: mvn package --file pom.xml -B
51-
52-
build-macos:
53-
54-
runs-on: macOS-latest
55-
strategy:
56-
matrix:
57-
java: [11, 17, 21, 22, 23]
58-
59-
steps:
60-
- uses: actions/checkout@v4
61-
- name: Set up JDK ${{ matrix.java }}
62-
uses: actions/setup-java@v4
63-
with:
64-
distribution: 'corretto'
65-
java-version: ${{ matrix.java }}
66-
cache: 'maven'
67-
- name: Build with Maven
68-
run: mvn package --file pom.xml -B
69-
7030
build-sonar:
7131
name: Build
7232
runs-on: ubuntu-latest
@@ -95,3 +55,10 @@ jobs:
9555
run: mvn -B -f examples/pom.xml package
9656
- name: Build spring-boot
9757
run: mvn -B -f spring-boot-example/pom.xml package
58+
- uses: codecov/codecov-action@v5
59+
with:
60+
files: target/site/jacoco/jacoco.xml
61+
name: codecov
62+
fail_ci_if_error: true
63+
env:
64+
CODECOV_TOKEN: a7a3a75d-8ee9-483e-8430-59b6b39471e2

0 commit comments

Comments
 (0)