-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add GitHub Actions workflow for linting and type checking
- Loading branch information
1 parent
1bdf9eb
commit f4545c6
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Lint and Type Check | ||
|
||
on: | ||
pull_request: | ||
# λͺ¨λ λΈλμΉμ λν΄ PR μ μ€ν | ||
branches: | ||
- '**' | ||
push: | ||
# λͺ¨λ λΈλμΉμ λν΄ νΈμ μ μ€ν | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
lint: | ||
name: Lint and Type Check | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Node.js environment | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
# Install dependencies | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
# Run ESLint to check for linting errors | ||
- name: Run ESLint | ||
run: npm run lint | ||
|
||
# Run Prettier to check formatting | ||
- name: Run Prettier Check | ||
run: npm run format -- --check | ||
|
||
# Run TypeScript compiler to check for type errors | ||
- name: Run TypeScript Check | ||
run: npm run tsc |