mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
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:
parent
214cbf77f0
commit
2179d5e8af
1 changed files with 2 additions and 1 deletions
3
.github/workflows/js-tests.yml
vendored
3
.github/workflows/js-tests.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue