validate renovate config file with version matrix #68
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: | |
lint: | |
strategy: | |
matrix: | |
renovate_version: [37, 36] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install linter | |
run: npm install -g prettier renovate@${{ matrix.renovate_version }} | |
- name: Lint renovate config | |
run: renovate-config-validator default.json && renovate-config-validator *.json5 | |
- name: Check format | |
run: prettier --check . |