ci: skip platform smoke for docs-only PRs#604
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41befe73f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| on: | ||
| pull_request: | ||
| paths-ignore: |
There was a problem hiding this comment.
Keep required smoke checks from being path-filtered
If the Android/iOS/Linux/macOS smoke workflows are configured as required PR checks, adding paths-ignore at the pull_request trigger skips creating a successful check for docs-only PRs; GitHub documents path-filtered workflows as remaining Pending, so those PRs can be blocked instead of merely saving runner time (see GitHub Actions workflow syntax docs: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions). Use a job-level docs-change guard with a no-op required job, or keep these workflows non-required, so the required check still completes.
Useful? React with 👍 / 👎.
Summary
Skip Android, iOS, macOS, and Linux smoke workflows on pull requests that only change docs/website or docs-preview/deploy workflow inputs. Pushes to main still run the platform smoke workflows.
This keeps platform validation for source, package, platform workflow, shared action, runner, and replay changes while avoiding emulator/simulator/desktop smoke work for docs-only PRs.
Touched-file count: 4. Scope stayed within platform smoke workflow triggers.
Validation
Validated workflow edits with
git diff --checkand local YAML parsing for the four platform workflows. This PR itself is expected to run platform smoke because it edits those platform workflow files; the skip behavior applies to subsequent docs-only PRs after merge.