-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.54 KB
/
validate-renovate-config.yaml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Renovate config validator
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
LOG_LEVEL: debug
jobs:
validate-config:
name: Validate Renovate config
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js environment
id: setup-node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: lts/*
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm --global config get cache)" >> ${GITHUB_OUTPUT}
- name: Get npm renovate version
id: npm-renovate-version
shell: bash
run: echo "renovate-version=$(npm view renovate version)" >> ${GITHUB_OUTPUT}
- name: global npm cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-renovate-${{ steps.npm-renovate-version.outputs.renovate-version }}
- name: Run renovate-config-validator
run: >-
npx -p renovate -c
'renovate-config-validator
renovate.json
base.json
default.json
renovate-config.json
frontend.json
automerge.json
dependencyLocking.json
action.json
'