Skip to content

Bump actions/setup-java from 3 to 4 #134

Bump actions/setup-java from 3 to 4

Bump actions/setup-java from 3 to 4 #134

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up the JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
server-id: github
cache: 'maven'
- name: Configure Problem Matchers
run: |
echo "::add-matcher::.github/problem-matcher.json"
echo "::remove-matcher owner=java::"
- name: Build with Maven
run: mvn -B package
- name: Upload test report
uses: actions/upload-artifact@v3
if: always()
with:
name: test report ${{ github.job }}
path: |
**/surefire-reports/TEST-*.xml
retention-days: 5