Skip to content

Commit

Permalink
chore: update pull_request workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-seifert committed Oct 31, 2023
1 parent 4fa26d8 commit ab4a7ad
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path

name: maven-build

on:
pull_request:
branches:
- master
pull_request:
branches:
- master
paths-ignore:
- '*.md'
- '.gitignore'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- 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: Build
run: mvn -B package --file pom.xml -Pcoverage -Dsytle.colors=always --errors
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ab4a7ad

Please sign in to comment.