Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/main-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build & Test
# Status-check shim for docs-only PRs. `main.yml` skips docs/media paths via
# `paths-ignore`, which leaves required `lint`/`test` checks unsatisfiable on
# such PRs and BLOCKED by branch protection. This workflow is the mirror
# image: triggers ONLY on those paths and emits matching job names that
# succeed immediately. Together with `main.yml` the two form a partition —
# exactly one runs per push/PR.
#
# Job names (`lint`, `test`) MUST match the names in `main.yml` and the
# contexts required by the `master` ruleset.
on:
push:
branches: [master]
paths:
- '*.md'
- 'media/**'
- 'packages/melonjs/DOC_README.md'
pull_request:
types: [opened, synchronize]
paths:
- '*.md'
- 'media/**'
- 'packages/melonjs/DOC_README.md'

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
Comment on lines +11 to +27

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- run: echo "docs-only change — skipping real lint"

test:
runs-on: ubuntu-latest
steps:
- run: echo "docs-only change — skipping real test"
12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build & Test
# Note: docs-only PRs (markdown / media changes) skip these jobs via
# `paths-ignore`. If branch-protection rules require `lint`/`test` as
# checks, those PRs end up BLOCKED with no checks ever running.
# The proper fix is a status-check shim workflow emitting matching job
# names with `success` for the same paths — until that lands, docs PRs
# need an admin-merge or a no-op non-md commit (like this one) to nudge
# CI into running. (PR #1442 — Capacitor icon — needed this nudge.)
# Docs-only PRs (markdown / media changes) skip these jobs via `paths-ignore`.
# Required `lint`/`test` checks are satisfied for those PRs by the shim in
# `main-docs.yml`, which mirrors this file's path filters and emits matching
# job names that succeed immediately. Together the two form a partition —
# exactly one runs per push/PR.
Comment on lines +3 to +6
on:
push:
branches: [master]
Expand Down
Loading