Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: compute maven home using mvn --version #998

Merged
merged 2 commits into from
Oct 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/mvn-build-dspot-action.yml
Original file line number Diff line number Diff line change
@@ -16,9 +16,12 @@ jobs:
- name: Build with Maven
run: mvn install -DskipTests
- name: Test and Coverage with Maven
run: cd dspot && mvn test jacoco:report
run: |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ")
cd dspot && mvn test jacoco:report
- name: "Report: Coverage via coveralls.io"
run: |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ")
export CI_BRANCH=${BRANCH_NAME_OR_REF#refs/heads/}
export CI_PULL_REQUEST=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
cd dspot && mvn coveralls:report --no-transfer-progress -DrepoToken=$COVERALLS_SECRET
Original file line number Diff line number Diff line change
@@ -15,5 +15,7 @@ jobs:
distribution: 'adopt'
- name: Build with Maven
run: mvn install -DskipTests
- name: Test with Maven
run: cd dspot-diff-test-selection && mvn test -DdoIntegrationTests=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- name: Test with Maven.
run: |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ")
cd dspot-diff-test-selection && mvn test -DdoIntegrationTests=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error
4 changes: 3 additions & 1 deletion .github/workflows/mvn-build-dspot-prettifier.yml
Original file line number Diff line number Diff line change
@@ -26,4 +26,6 @@ jobs:
- name: Build with Maven
run: mvn install -DskipTests
- name: Test with Maven
run: cd dspot-prettifier && mvn test -DdoIntegrationTests=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error
run: |
export MAVEN_HOME=$(mvn --version | grep "Maven home" | cut -f 3 -d " ")
cd dspot-prettifier && mvn test -DdoIntegrationTests=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error