Skip to content

chore: update GH Actions workflows #275

chore: update GH Actions workflows

chore: update GH Actions workflows #275

Workflow file for this run

name: maven-build
on:
pull_request:
branches:
- master
paths-ignore:
- '*.md'
- '.gitignore'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: corretto
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build
run: mvn --batch-mode package --file pom.xml -Pcoverage -Dsytle.colors=always --errors
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}