Skip to content
Merged
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/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'

- name: Validate Renovate preset
# A malformed default.json would silently break Renovate for the whole
# org (every repo inherits this preset). Validate it on every PR so the
# org-wide automerge contract has a real CI gate here too.
run: npx --yes --package renovate -- renovate-config-validator --strict renovate/default.json

- name: Validate JSON files parse
run: |
fail=0
while IFS= read -r -d '' f; do
if ! jq empty "$f" 2>/dev/null; then
echo "::error file=$f::invalid JSON"
fail=1
fi
done < <(find . -name '*.json' -not -path './.git/*' -print0)
exit $fail
Loading