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
4 changes: 2 additions & 2 deletions .github/renovate-nix.json5
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
matchBaseBranches: [
'main',
// Release 2.2 and newer use nix.
'/'^release-2\.([2-9]|..+)$/',
'/^release-2\.([2-9]|..+)$/',
],
postUpgradeTasks: {
commands: [
Expand All @@ -46,7 +46,7 @@
matchBaseBranches: [
'main',
// Release 2.2 and newer use nix.
'/'^release-2\.([2-9]|..+)$/',
'/^release-2\.([2-9]|..+)$/',
],
postUpgradeTasks: {
commands: [
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,26 @@ jobs:
- name: Verify Generated Code
run: nix build .#checks.x86_64-linux.generate --print-build-logs

validate-renovate-config:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

# renovate-config-validator only looks at the top-level file and does
# not recursively resolve local> presets, so we also syntax-check every
# renovate*.json5 with the json5 CLI to catch preset parse errors at
# PR time rather than 24h later in the scheduled Renovate job.
- name: Validate Renovate preset syntax
run: |
for f in .github/renovate*.json5; do
npx --yes json5 "$f" > /dev/null
done

- name: Validate Renovate JSON
run: npx --yes --package renovate -- renovate-config-validator

lint:
runs-on: ubuntu-22.04

Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

# Don't waste time starting Renovate if JSON is invalid
# Don't waste time starting Renovate if any preset is unparseable.
# renovate-config-validator only looks at the top-level file and does
# not recursively resolve local> presets, so we also syntax-check every
# renovate*.json5 with the json5 CLI.
- name: Validate Renovate preset syntax
run: |
for f in .github/renovate*.json5; do
npx --yes json5 "$f" > /dev/null
done

- name: Validate Renovate JSON
run: npx --yes --package renovate -- renovate-config-validator
run: npx --yes --package renovate -- renovate-config-validator

- name: Get token
id: get-github-app-token
Expand Down
Loading