chore: Update TODOs (for Lit and Package Version) #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "npm" | |
- name: "Install Dependencies" | |
run: npm ci | |
- 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: ts | |
run: npx tsc --noEmit | |
continue-on-error: true | |
- name: "Bail If Checks Failed" | |
if: steps.prettier.outcome != 'success' || steps.eslint.outcome != 'success' || steps.ts.outcome != 'success' | |
run: | | |
echo "One or more code quality checks failed. Exiting with code 1..." | |
exit 1 |