validate renovate config file with version matrix #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Install prettier by pnpm | |
run: pnpm install --frozen-lockfile | |
- name: Check format | |
run: pnpm run lint:fmt | |
lint: | |
strategy: | |
matrix: | |
renovate_version: [37, 36] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install linter | |
run: npm install -g renovate@${{ matrix.renovate_version }} | |
- name: Lint renovate config | |
run: renovate-config-validator default.json && renovate-config-validator *.json5 |