Skip to content

[Enhancement] Optimize CI workflows to skip Java tests on docs-only changes #703

@ongdisheng

Description

@ongdisheng

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Currently all Java CI workflows run on every PR even when only documentation files are changed. This wastes CI resources and slows down PR checks. For example, PR #702 only changed website/community/contribution.md but still triggered all Java CI tests including license check, spotless, tests across 5 JDK versions, CodeQL scan, etc.

Solution

Propose to add paths filtering to ci.yml and codeql-scan.yml so they only run when Java source code or Maven configs change:

paths:
  - '.github/workflows/ci.yml'
  - '**/pom.xml'
  - 'fesod/**'
  - 'fesod-*/**'
  - '!**.md'

Alternatives

No response

Anything else?

Image

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions