-
Notifications
You must be signed in to change notification settings - Fork 42
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 #577 from grails/3.2.xinto4.0.x
Merge 3.2.x into 4.0.x
- Loading branch information
Showing
37 changed files
with
605 additions
and
400 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 |
---|---|---|
|
@@ -2,34 +2,29 @@ name: Java CI | |
on: | ||
push: | ||
branches: | ||
- master | ||
- '[2-9]+.[0-9]+.x' | ||
pull_request: | ||
branches: | ||
- master | ||
- '[2-9]+.[0-9]+.x' | ||
env: | ||
GIT_USER_NAME: puneetbehl | ||
GIT_USER_EMAIL: [email protected] | ||
|
||
jobs: | ||
|
||
build: | ||
test_project: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.event_name == 'pull_request' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [11, 17] | ||
|
||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
GRADLE_OPTS: -Xmx1500m -Dfile.encoding=UTF-8 | ||
|
||
fail-fast: false | ||
matrix: { java: [11, 17] } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run Tests | ||
if: github.event_name == 'pull_request' | ||
id: tests | ||
|
@@ -39,56 +34,55 @@ jobs: | |
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
with: | ||
arguments: | | ||
check | ||
-Dgeb.env=chromeHeadless | ||
arguments: check -Dgeb.env=chromeHeadless | ||
|
||
build_project: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@v2 | ||
- uses: actions/setup-java@v4 | ||
with: { java-version: 11, distribution: temurin } | ||
- name: Run Build | ||
if: github.event_name == 'push' | ||
id: build | ||
uses: gradle/actions/setup-gradle@v3 | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
with: | ||
arguments: | | ||
build | ||
-Dgeb.env=chromeHeadless | ||
arguments: build -Dgeb.env=chromeHeadless | ||
|
||
- name: Publish Snapshot to repo.grails.org | ||
id: publish | ||
- name: Publish Snapshot artifacts to Artifactory (repo.grails.org) | ||
if: success() | ||
uses: gradle/actions/setup-gradle@v3 | ||
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '11' | ||
env: | ||
ORG_GRADLE_PROJECT_artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
ORG_GRADLE_PROJECT_artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
ORG_GRADLE_PROJECT_artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
ORG_GRADLE_PROJECT_artifactoryPassword: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
with: | ||
arguments: | | ||
-Dorg.gradle.internal.publish.checksums.insecure=true | ||
publish | ||
- name: Build Docs | ||
id: docs | ||
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '11' | ||
- name: Generate Snapshot Documentation | ||
if: success() | ||
uses: gradle/actions/setup-gradle@v3 | ||
env: | ||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} | ||
with: | ||
arguments: views-docs:docs | ||
|
||
- name: Publish Snapshot docs to Github Pages | ||
if: steps.docs.outcome == 'success' && github.event_name == 'push' && matrix.java == '11' | ||
- name: Publish Snapshot Documentation to Github Pages | ||
if: success() | ||
uses: micronaut-projects/github-pages-deploy-action@grails | ||
env: | ||
TARGET_REPOSITORY: ${{ github.repository }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
BRANCH: gh-pages | ||
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }} | ||
COMMIT_NAME: ${{ env.GIT_USER_NAME }} | ||
FOLDER: docs/build/docs | ||
COMMIT_EMAIL: [email protected] | ||
COMMIT_NAME: Puneet Behl | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
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
Oops, something went wrong.