ci: add eslint lint matrix to js-tests.yml

Add a 'lint' job to the JS tests workflow that runs 'eslint --fix'
across all discovered npm workspaces (same matrix as the check job).
Fixable issues auto-correct and don't block; eslint exits non-zero
only when un-fixable errors remain.

Also fix duplicate 'needs: workspaces' in the check job.
This commit is contained in:
ethernet 2026-07-10 14:21:52 -04:00 committed by kshitij
parent 214cbf77f0
commit 2179d5e8af

View file

@ -30,8 +30,8 @@ jobs:
check:
name: Typecheck & Test
runs-on: ubuntu-latest
needs: workspaces
runs-on: ubuntu-latest
strategy:
matrix:
package: ${{ fromJson(needs.workspaces.outputs.packages) }}
@ -47,3 +47,4 @@ jobs:
# --ignore-scripts: TS & tests don't need native deps
command: npm ci --ignore-scripts
- run: npm run --prefix ${{ matrix.package }} check
- run: npm run --prefix ${{ matrix.package }} fix