mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
* fix(readme): replace broken docs.worldmonitor.app link with relative path The docs.worldmonitor.app domain no longer resolves. Replace with relative path to docs/data-sources.mdx. Fixes #2616 Supersedes #2619 Co-authored-by: fuleinist <fuleinist@gmail.com> * docs(readme): update data sources count from 30+ to 65+ * docs(readme): update data source categories to reflect full coverage * fix(ci): unblock docs-only PRs from required check deadlock Move paths-ignore from workflow triggers to job-level `if:` conditions. When a workflow uses paths-ignore at the trigger level, GitHub never creates the check run, so required checks stay "Waiting" forever. Job-level skips via `if:` report as passed, satisfying branch protection. Also update deploy-gate to treat "skipped" conclusions as passing. --------- Co-authored-by: fuleinist <fuleinist@gmail.com>
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Lint Code
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
outputs:
|
|
code: ${{ steps.diff.outputs.code }}
|
|
steps:
|
|
- id: diff
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
if [ "${{ github.event_name }}" = "push" ]; then
|
|
echo "code=true" >> "$GITHUB_OUTPUT"
|
|
exit 0
|
|
fi
|
|
FILES=$(gh api "repos/${{ github.repository }}/pulls/${{ github.event.number }}/files" \
|
|
--paginate --jq '.[].filename')
|
|
CODE=$(echo "$FILES" | grep -vcE '\.md$|^docs/|^src-tauri/|^CHANGELOG\.md$|^LICENSE$|\.github/workflows/(build-desktop|docker-publish)\.yml$' || echo 0)
|
|
echo "code=$( [ "$CODE" -gt 0 ] && echo true || echo false )" >> "$GITHUB_OUTPUT"
|
|
|
|
biome:
|
|
needs: changes
|
|
if: needs.changes.outputs.code == 'true'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run lint:unicode
|
|
- run: npm run lint
|
|
- run: npm run lint:boundaries
|
|
- name: Markdown lint
|
|
run: npm run lint:md
|
|
- name: Version sync check
|
|
run: npm run version:check
|