You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/05/17 15:22:47 UTC
(grails-core) branch 7.0.x updated: [skip tests] only run the publish when tests are skipped
This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new 69b1b28d2f [skip tests] only run the publish when tests are skipped
69b1b28d2f is described below
commit 69b1b28d2f54f071705e4d2efb1be11a5393d7ae
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Sat May 17 11:22:39 2025 -0400
[skip tests] only run the publish when tests are skipped
---
.github/workflows/gradle.yml | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index c95f0f35aa..810fcfd7fe 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -63,6 +63,7 @@ jobs:
./gradlew build
--continue --stacktrace
build:
+ if: ${{ !contains(github.event.head_commit.message, '[skip tests]') }}
name: 'Build Grails-Core'
strategy:
fail-fast: false
@@ -84,14 +85,7 @@ jobs:
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
- - name: "🔨 Build project without tests"
- if: ${{ contains(github.event.head_commit.message, '[skip tests]') }}
- run: >
- ./gradlew build :grails-shell-cli:installDist groovydoc
- --continue --stacktrace
- -PskipTests
- - name: "🔨 Build project with tests"
- if: ${{ !contains(github.event.head_commit.message, '[skip tests]') }}
+ - name: "🔨 Build project"
run: >
./gradlew build :grails-shell-cli:installDist groovydoc
--continue --stacktrace
@@ -214,7 +208,7 @@ jobs:
-Dorg.gradle.internal.publish.checksums.insecure=true
publish:
needs: [ publishGradle, build, functional, hibernate5Functional, mongodbFunctional ]
- if: github.repository_owner == 'apache' && github.event_name == 'push' && needs.publishGradle.result == 'success' && needs.build.result == 'success' && (needs.functional.result == 'success' || needs.functional.result == 'skipped') && (needs.hibernate5Functional.result == 'success' || needs.hibernate5Functional.result == 'skipped') && (needs.mongodbFunctional.result == 'success' || needs.mongodbFunctional.result == 'skipped')
+ if: ${{ github.repository_owner == 'apache' && github.event_name == 'push' && needs.publishGradle.result == 'success' && (needs.build.result == 'success' || needs.build.result == 'skipped') && (needs.functional.result == 'success' || needs.functional.result == 'skipped') && (needs.hibernate5Functional.result == 'success' || needs.hibernate5Functional.result == 'skipped') && (needs.mongodbFunctional.result == 'success' || needs.mongodbFunctional.result == 'skipped') }}
runs-on: ubuntu-24.04
steps:
- name: "📥 Checkout repository"