-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validate renovate config file with version matrix
- Loading branch information
1 parent
c17fa19
commit b5a3deb
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,18 @@ on: | |
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
renovate_version: [37, 36] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm run lint | ||
|
||
- 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 . |