Skip to content

Commit 5e40583

Browse files
committed
Update lint workflow
1 parent a14f609 commit 5e40583

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ jobs:
168168
name: Lint
169169
runs-on: ubuntu-latest
170170
needs: prepare
171-
strategy:
172-
fail-fast: false
173-
matrix:
174-
package-name: ${{ fromJson(needs.prepare.outputs.all-workspace-package-names) }}
175171
steps:
176172
- uses: actions/checkout@v4
177173
- name: Setup Node
@@ -180,7 +176,16 @@ jobs:
180176
node-version-file: '.nvmrc'
181177
cache: yarn
182178
- run: yarn --immutable --immutable-cache
183-
- run: yarn workspace ${{ matrix.package-name }} run lint:ci
179+
- name: ESLint
180+
run: yarn lint:eslint
181+
- name: Prettier
182+
run: yarn lint:misc --check
183+
- name: TSConfig
184+
run: yarn lint:tsconfig
185+
- name: Yarn constraints
186+
run: yarn constraints
187+
- name: Dependencies
188+
run: yarn lint:dependencies
184189
- name: Require clean working directory
185190
shell: bash
186191
run: |

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
"get-release-tag": "ts-node --swc scripts/get-release-tag.ts",
2626
"postinstall": "simple-git-hooks",
2727
"install-chrome": "./scripts/install-chrome.sh",
28-
"lint": "yarn workspaces foreach --all --parallel run lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
29-
"lint:ci": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
28+
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:tsconfig && yarn constraints && yarn lint:dependencies",
3029
"lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check",
31-
"lint:eslint": "eslint . --cache --ext js,cjs,mjs,jsx,ts,mts,cts,tsx",
30+
"lint:eslint": "eslint . --cache",
3231
"lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe",
3332
"lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'",
3433
"lint:tsconfig": "node scripts/verify-tsconfig.mjs",

0 commit comments

Comments
 (0)