Skip to content

Commit

Permalink
Add type-checking and unit tests to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Nov 25, 2023
1 parent 0af9f65 commit 59915ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Check linting and formatting

on: push

jobs:
check-linting-and-formatting:
name: Check linting and formatting
on-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,7 +11,11 @@ jobs:
cache: npm
- run: |
npm install
- run: |
npm run type-check
- run: |
npm run lint
- run: |
npm run format-check
- run: |
npm run test
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
},
"scripts": {
"dev": "vite",
"preview": "vite preview",
"build": "tsc && vite build",
"type-check": "tsc",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write .",
"format-check": "prettier --check .",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"test": "vitest"
},
"browserslist": {
Expand Down

0 comments on commit 59915ef

Please sign in to comment.