Skip to content

Merge pull request #78 from hatena/renovate/actions-checkout-4.x #179

Merge pull request #78 from hatena/renovate/actions-checkout-4.x

Merge pull request #78 from hatena/renovate/actions-checkout-4.x #179

name: Validate renovate config
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: actions/cache@v3
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