36 lines
836 B
YAML
36 lines
836 B
YAML
name: Validate Renovate Config
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/renovate.json5"
|
|
- ".github/workflows/renovate.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- ".github/renovate.json5"
|
|
- ".github/workflows/renovate.yml"
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
env:
|
|
RENOVATE_VERSION: latest
|
|
run: npm install -g renovate@${RENOVATE_VERSION}
|
|
|
|
- name: Validate Renovate config
|
|
shell: bash
|
|
run: renovate-config-validator --strict
|