-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1318 from gradle/erichaagdev/workflow-improvements
Workflows are improved
- Loading branch information
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ name: Verify Convention Develocity Maven Extension | |
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ 'convention-develocity-maven-extension/**' ] | ||
paths: [ 'convention-develocity-maven-extension/**', '.github/workflows/**' ] | ||
pull_request: | ||
branches: [ main ] | ||
paths: [ 'convention-develocity-maven-extension/**' ] | ||
paths: [ 'convention-develocity-maven-extension/**', '.github/workflows/**' ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -54,6 +54,8 @@ jobs: | |
java-version: '8' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Set up Maven | ||
uses: gradle/develocity-actions/[email protected] | ||
- name: Download extension | ||
uses: actions/download-artifact@v4 | ||
with: | ||
|
@@ -62,11 +64,15 @@ jobs: | |
- name: Set Maven version | ||
if: ${{ matrix.versions.version != '(Current)' }} | ||
working-directory: convention-develocity-maven-extension/examples/maven_${{ matrix.versions.sample }} | ||
run: ./mvnw wrapper:wrapper -Dmaven=${{ matrix.versions.version }} -Ddevelocity.url=https://ge.solutions-team.gradle.com | ||
run: ./mvnw wrapper:wrapper -Dmaven=${{ matrix.versions.version }} -Ddevelocity.scan.disabled | ||
env: | ||
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} | ||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | ||
- name: Verify example build | ||
id: build | ||
working-directory: convention-develocity-maven-extension/examples/maven_${{ matrix.versions.sample }} | ||
run: ./mvnw clean verify -Ddevelocity.url=https://ge.solutions-team.gradle.com | ||
env: | ||
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }} | ||
DEVELOCITY_ACCESS_KEY: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | ||
- name: Verify Build Scan published | ||
if: ${{ !steps.build.outputs.build-scan-url }} | ||
run: echo "::error ::No Build Scan published"; exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters