From b5a3deb198d44992c3b92b2c14f7d71ed5494119 Mon Sep 17 00:00:00 2001 From: Masaki Nakano Date: Thu, 29 Feb 2024 15:13:03 +0900 Subject: [PATCH] validate renovate config file with version matrix --- .github/workflows/lint.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index afb3a03..95f7f16 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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/setup-node@v4.0.2 - 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 .