-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cron tests with latest Gradle version(s) on CI (#174)
* Cron tests with latest Gradle version(s) To faster detect regressions, deprecations and incompatibilities. * Wording * Wording * Separate fetching latest versions and setting it for tests The fetching step could be extracted to separate GH action. * Allow for manual Gradle latest versions tests workflow trigger * Add merge_group for main workflow Also removed "yaml-language-server", schema could be enforced in used editors. * Remove technical push rule for current MR branch
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Gradle latest versions tests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 7 * * MON" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
gradle-compatTest: | ||
name: "Compatibility tests with latest Gradle versions" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
|
||
- name: Fetch latest available Gradle versions | ||
run: | | ||
GRADLE_VERSIONS_TYPES_TO_FETCH="current release-candidate nightly release-nightly" | ||
GRADLE_VERSIONS_OUTPUT_FILE=latest-gradle-versions.txt | ||
for gv in $GRADLE_VERSIONS_TYPES_TO_FETCH; do | ||
echo "Fetching latest Gradle version for '$gv'" | ||
curl --silent --show-error "https://services.gradle.org/versions/$gv" | jq -r '.version | select( . != null )' >> latest-gradle-versions.txt | ||
done | ||
echo -e "\nGradle versions configured for compatibility tests (in $GRADLE_VERSIONS_OUTPUT_FILE):" | ||
cat $GRADLE_VERSIONS_OUTPUT_FILE | ||
echo "GRADLE_VERSIONS_OUTPUT_FILE=$GRADLE_VERSIONS_OUTPUT_FILE" >> $GITHUB_ENV | ||
- name: Set latest Gradle versions to test with | ||
run: | | ||
cp "${{ env.GRADLE_VERSIONS_OUTPUT_FILE }}" .stutter/java11.lock | ||
echo "Gradle versions configured for compatibility tests:" | ||
cat .stutter/java11.lock | ||
- name: Run compatTest | ||
run: ./gradlew --continue test compatTest |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
pull_request: | ||
branches: | ||
- '*' | ||
merge_group: | ||
|
||
jobs: | ||
gradle: | ||
|