diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7de449..2a09a76 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,8 +27,14 @@ jobs: - name: Install NPM dependencies run: npm ci + - name: Check formatting + run: npm run format-check + + - name: Run linter + run: npm run lint-check + - name: Run tests - run: npm run all + run: npm run test - run: git diff --quiet dist/ test: # make sure the action works on a clean machine without building diff --git a/package.json b/package.json index ab013d5..0d7f3b5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "main": "src/main.ts", "scripts": { "format": "prettier --write **/*.ts", + "format-check": "prettier --check **/*.ts", "lint": "eslint --fix **/*.ts", + "lint-check": "eslint **/*.ts", "package": "ncc build -o dist/main src/main.ts --source-map --license licenses.txt && ncc build -o dist/cleanup src/cleanup.ts --source-map --license licenses.txt", "test": "SKIP_INTEGRATION_TESTS=true jest --detectOpenHandles", "test-integration": "jest --detectOpenHandles 'integration'",