diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index c0dce43..309a81f 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -16,5 +16,20 @@ jobs: cache: "npm" - name: "Install Dependencies" run: npm ci - - name: "Run Linters" - run: npm run lint + - name: "Check Formatting" + id: prettier + run: npx prettier --ignore-path .gitignore --check . + continue-on-error: true + - name: "Run ESLint" + id: eslint + run: npx eslint --ignore-path .gitignore . + continue-on-error: true + - name: "Validate TypeScript Types" + id: typescript + run: npx tsc --noEmit + continue-on-error: true + - name: "Verify That All Checks Succeeded" + if: steps.prettier.outcome != "success" || steps.eslint.outcome != "success" || steps.ts.outcome != "success" + run: | + echo "1 or more checks failed" + exit 1