Skip to content

Commit

Permalink
Add M2_HOME in an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Feb 7, 2024
1 parent f018db5 commit de3ecb7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,21 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
cache: maven
- uses: stCarolas/setup-maven@v4.5
- uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.1
- name: Maven Info
run: echo "home=$(mvn -v -q | grep "Maven home:" | sed -e 's/Maven home://' -e 's/^[[:space:]]*//')" >> $GITHUB_OUTPUT
shell: bash
id: maven
- run: mvn --batch-mode install
env:
M2_HOME: '${{ steps.maven.outputs.home }}'
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
Expand Down

0 comments on commit de3ecb7

Please sign in to comment.