Skip to content

Workflow file for this run

name: maven-build
on:
pull_request:
branches:
- master
# Do not execute only for specific paths if workflow is required.
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
java-version:
- 11
- 17
- 21
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: corretto
cache: maven
- name: Build with Maven
run: >
mvn
--batch-mode
--file pom.xml
-Pcoverage
-Dsytle.colors=always
--errors
package
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}