Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maven.yml #690

Merged
merged 4 commits into from
Nov 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading