Skip to content

Commit 12593fc

Browse files
authored
fail CI on lint warnings (#774)
1 parent 6c4deee commit 12593fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- run: yarn test:tsc
2424
- run: |
2525
echo ::add-matcher::.github/eslint.json
26-
yarn run eslint src test --format=compact
26+
yarn run eslint src test --format=compact --max-warnings=0
2727
- run: yarn test:prettier
2828
- uses: actions/upload-artifact@v3
2929
if: failure()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"test": "yarn test:mocha && yarn test:tsc && yarn test:lint && yarn test:prettier",
3030
"test:coverage": "c8 yarn test:mocha",
3131
"test:mocha": "rm -rf test/.observablehq/cache test/input/build/*/.observablehq/cache && OBSERVABLE_TELEMETRY_DISABLE=1 TZ=America/Los_Angeles tsx --no-warnings=ExperimentalWarning ./node_modules/.bin/mocha 'test/**/*-test.*'",
32-
"test:lint": "eslint src test",
32+
"test:lint": "eslint src test --max-warnings=0",
3333
"test:prettier": "prettier --check src test",
3434
"test:tsc": "tsc --noEmit",
3535
"observable": "tsx --no-warnings=ExperimentalWarning ./bin/observable.ts"

0 commit comments

Comments
 (0)