Skip to content

Commit

Permalink
validate renovate config file with version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
namachan10777 committed May 29, 2024
1 parent c17fa19 commit b5a3deb
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit b5a3deb

Please sign in to comment.