This is an automated email from the ASF dual-hosted git repository.
Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new e3f40d7f4e ci: run Apache RAT checks in pull request workflow (#6603)
(#7405)
e3f40d7f4e is described below
commit e3f40d7f4ebe351000a30cfdb4a0beecca66ccd4
Author: JerryčAI <[email protected]>
AuthorDate: Fri Oct 2 12:29:56 2026 +0800
ci: run Apache RAT checks in pull request workflow (#6603) (#7405)
---
.github/workflows/ci.yml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 21e43284f0..4594b7abb6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,6 +64,7 @@ jobs:
outputs:
code: ${{ steps.modules.outputs.has_code_changes }}
code_files: ${{ steps.filter.outputs.code_files }}
+ rat_required: ${{ steps.filter.outputs.code }}
modules: ${{ steps.modules.outputs.modules }}
full_build_required: ${{ steps.modules.outputs.full_build_required }}
steps:
@@ -111,6 +112,19 @@ jobs:
- name: Test GHCR publish routing
run: bash .github/scripts/resolve-ghcr-publish-test.sh
+ rat_check:
+ needs: changes
+ runs-on: ubuntu-latest
+ if: github.repository == 'apache/shenyu' &&
needs.changes.outputs.rat_required == 'true'
+ steps:
+ - uses: actions/checkout@v3
+ - uses: ./actions/setup-java-with-retry
+ with:
+ java-version: "17"
+ distribution: "temurin"
+ - name: Run Apache RAT check
+ run: ./mvnw -B -ntp apache-rat:check
+
pr_build:
needs: changes
runs-on: ubuntu-latest
@@ -331,6 +345,7 @@ jobs:
if: (github.repository == 'apache/shenyu') && always()
needs:
- changes
+ - rat_check
- pr_build
- build_local_repo
- test_group
@@ -340,6 +355,9 @@ jobs:
- name: checking job status
run: |
[[ "${{ needs.changes.result }}" == "success" ]] || exit -1
+ if [[ "${{ needs.changes.outputs.rat_required }}" == "true" ]]; then
+ [[ "${{ needs.rat_check.result }}" == "success" ]] || exit -1
+ fi
if [[ "${{ needs.changes.outputs.code }}" == "true" && "${{
github.event_name }}" == "pull_request" ]]; then
[[ "${{ needs.pr_build.result }}" == "success" ]] || exit -1
fi