-
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 #1399 from gradle/erichaagdev/re-enable-maven-cach…
…ing-samples Maven build caching samples are re-enabled
- Loading branch information
Showing
5 changed files
with
126 additions
and
112 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
.github/workflows/maven-build-caching-samples-verification.yml
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Verify Maven Build Caching Samples | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: [ 'build-caching-maven-samples/**', '.github/workflows/**' ] | ||
pull_request: | ||
branches: [ main ] | ||
paths: [ 'build-caching-maven-samples/**', '.github/workflows/**' ] | ||
workflow_dispatch: | ||
|
||
env: | ||
PROJECT_DIR: build-caching-maven-samples | ||
GOALS: verify | ||
ARGS: -B -Ddevelocity.cache.failOnUnhandledParameters=true | ||
|
||
jobs: | ||
verification: | ||
name: Verification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Set up Maven | ||
uses: gradle/develocity-actions/[email protected] | ||
with: | ||
develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | ||
- name: Setup Node.js and Npm | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14' | ||
- name: Set up Yarn | ||
run: npm install -g yarn | ||
- name: Download latest version of the Develocity Build Validation Scripts | ||
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/download@actions-stable | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run experiment 1 | ||
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/experiment-1@actions-stable | ||
with: | ||
gitRepo: ${{ github.server_url }}/${{ github.repository }} | ||
gitCommitId: ${{ github.sha }} | ||
projectDir: ${{ env.PROJECT_DIR }} | ||
goals: ${{ env.GOALS }} | ||
args: ${{ env.ARGS }} | ||
failIfNotFullyCacheable: true | ||
- name: Run experiment 2 | ||
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/maven/experiment-2@actions-stable | ||
with: | ||
gitRepo: ${{ github.server_url }}/${{ github.repository }} | ||
gitCommitId: ${{ github.sha }} | ||
projectDir: ${{ env.PROJECT_DIR }} | ||
goals: ${{ env.GOALS }} | ||
args: ${{ env.ARGS }} | ||
failIfNotFullyCacheable: true |
49 changes: 0 additions & 49 deletions
49
.github/workflows/maven-build-caching-samples-verification.yml.disabled
This file was deleted.
Oops, something went wrong.
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