Phase 15: skip api/harness CI for doc-only PRs + markdown lint gate #11
+31
-4
@@ -5,6 +5,31 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
changes:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
permissions:
|
||||||
|
pull-requests: read
|
||||||
|
outputs:
|
||||||
|
code: ${{ steps.filter.outputs.code }}
|
||||||
|
steps:
|
||||||
|
- uses: dorny/paths-filter@v4
|
||||||
|
id: filter
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
code:
|
||||||
|
- '**/*.ts'
|
||||||
|
- '**/*.tsx'
|
||||||
|
- '**/*.js'
|
||||||
|
- '**/*.json'
|
||||||
|
- '**/*.yaml'
|
||||||
|
- '**/*.yml'
|
||||||
|
- 'apps/**'
|
||||||
|
- 'packages/**'
|
||||||
|
- 'pnpm-lock.yaml'
|
||||||
|
- 'Dockerfile'
|
||||||
|
- 'docker-compose*.yml'
|
||||||
|
|
||||||
fast-checks:
|
fast-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
@@ -42,8 +67,9 @@ jobs:
|
|||||||
|
|
||||||
api:
|
api:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request'
|
needs: [changes]
|
||||||
# Runs in PARALLEL with fast-checks (D-03) — no needs: dependency.
|
if: github.event_name == 'pull_request' && needs.changes.outputs.code == 'true'
|
||||||
|
# Runs in PARALLEL with fast-checks (D-03) — skipped for doc-only PRs.
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11
|
image: mariadb:11
|
||||||
@@ -128,8 +154,9 @@ jobs:
|
|||||||
|
|
||||||
harness:
|
harness:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'pull_request'
|
needs: [changes]
|
||||||
# Runs in PARALLEL with fast-checks + api (D-03) — no needs: dependency.
|
if: github.event_name == 'pull_request' && needs.changes.outputs.code == 'true'
|
||||||
|
# Runs in PARALLEL with fast-checks (D-03) — skipped for doc-only PRs.
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11
|
image: mariadb:11
|
||||||
|
|||||||
Reference in New Issue
Block a user