-
Notifications
You must be signed in to change notification settings - Fork 30
Created a nightly job to run against future Gradle versions #430
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c7aa252
Created a workflow to run nightly to verify against future Gradle ver…
ribafish da3e64e
Added current gradle version to the nightly build matrix
ribafish b172c02
Reworked the nightly RC workflow
ribafish 35877dc
Potential fix for code scanning alert no. 13: Workflow does not conta…
ribafish 7a99562
Handled PR comments
ribafish 25d96f0
Merge branch 'gk/nightlyGHA' of github.com:gradle/common-custom-user-…
ribafish c902cb4
Added gradle version to project under test and its builds custom valu…
ribafish c6ae7d1
Minor improvements
ribafish 65e86d4
Update .github/workflows/build-verification-nightly.yml
ribafish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,106 @@ | ||
| name: Verify Build (Nightly) | ||
| permissions: | ||
| contents: read | ||
| on: | ||
| schedule: | ||
| - cron: '0 4 * * *' | ||
| push: | ||
| paths: | ||
| - ".github/workflows/build-verification-nightly.yml" | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| verification: | ||
| name: Verification | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
| with: | ||
| develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | ||
| gradle-version: 'release-candidate' | ||
| - name: Build and publish to Maven Local with Gradle | ||
| run: gradle build publishToMavenLocal -x signPluginMavenPublication -i -Porg.gradle.java.installations.auto-download=false | ||
| env: | ||
| DISABLE_REQUIRED_SIGNING: true | ||
| - name: Upload published plugin | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: common-custom-user-data-gradle-plugin | ||
| path: ~/.m2/repository/com/gradle | ||
| local-test: | ||
| name: Test with Locally Published Plugin | ||
| runs-on: ubuntu-latest | ||
| needs: verification | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| gradle-version: ['current', 'release-candidate', 'nightly'] | ||
| java-version: ['21'] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
| - name: Set up JDK | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: ${{ matrix.java-version }} | ||
| distribution: 'temurin' | ||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
| with: | ||
| develocity-access-key: ${{ secrets.DV_SOLUTIONS_ACCESS_KEY }} | ||
| gradle-version: '${{ matrix.gradle-version }}' | ||
| - name: Download plugin to maven local | ||
| uses: actions/download-artifact@v5 | ||
| with: | ||
| name: common-custom-user-data-gradle-plugin | ||
| path: ~/.m2/repository/com/gradle | ||
| - name: Create the test project | ||
| run: | | ||
| echo """ | ||
| pluginManagement { | ||
| repositories { | ||
| gradlePluginPortal() | ||
| exclusiveContent { | ||
| forRepository { | ||
| mavenLocal() | ||
| } | ||
| filter { | ||
| includeModule(\"com.gradle\", \"common-custom-user-data-gradle-plugin\") | ||
| includeModule(\"com.gradle.common-custom-user-data-gradle-plugin\", \"com.gradle.common-custom-user-data-gradle-plugin.gradle.plugin\") | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| plugins { | ||
| id(\"com.gradle.develocity\") version \"4+\" | ||
| id(\"com.gradle.common-custom-user-data-gradle-plugin\") version \"2+\" | ||
| } | ||
|
|
||
| develocity { | ||
| server = \"https://ge.solutions-team.gradle.com\" | ||
| } | ||
|
|
||
| rootProject.name = \"ccud-test-gradle-${{ matrix.gradle-version }}\" | ||
| """ > ${{ runner.temp }}/settings.gradle | ||
|
|
||
| echo """ | ||
| org.gradle.vfs.watch=true | ||
| org.gradle.daemon=true | ||
| org.gradle.parallel=true | ||
| org.gradle.caching=true | ||
| org.gradle.configuration-cache=true | ||
| org.gradle.unsafe.configuration-cache=true | ||
| org.gradle.jvmargs=-Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 | ||
| """ > ${{ runner.temp }}/gradle.properties | ||
| - name: Run a build with the locally published plugin | ||
| run: gradle help "-Dscan.value.gradle-version=${{ matrix.gradle-version }}" "-Dscan.value.java-version=${{ matrix.java-version }}" | ||
| working-directory: ${{ runner.temp }} | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.