-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 992 Bytes
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://github.com/hatena/renovate-config/blob/687964addf81a21051571d09a4829af43bc00ab4/.github/workflows/validate-config.yml
name: Validate renovate config
on:
push:
branches: [main]
pull_request:
env:
# renovate: datasource=node-version depName=node
NODE_VERSION: '22.13.1'
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
with:
node-version: '${{ env.NODE_VERSION }}'
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: ~/.npm
key: ${{ runner.os }}-node
- name: Validate renovate config
run: |
for file in *.json*
do
echo "[CI] Let's validate $file"
RENOVATE_CONFIG_FILE=${file} npx --package renovate -c 'renovate-config-validator'
done