Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,31 @@ on:
pull_request:

jobs:
lint:
check-format:
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
- 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]
Comment on lines +26 to +27
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matrix に設定する Renovate のバージョンについては一旦この方針で行きましょう.(特に major update のような)更新は人間側も強く認識しておくべき,というのはあるので,このバージョンの適切な追従については後で考えましょう.

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
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"main": "index.js",
"scripts": {
"lint:fmt": "prettier --check .",
"lint:renovate": "renovate-config-validator default.json && renovate-config-validator *.json5",
"lint": "run-p lint:*",
"fix:fmt": "prettier -w .",
"fix": "run-p fix:*"
Expand All @@ -17,7 +16,6 @@
"license": "MIT",
"devDependencies": {
"npm-run-all2": "^6.0.0",
"prettier": "^3",
"renovate": "^37"
"prettier": "^3.2.5"
}
}
Loading