-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ci checks for lint, format, tests
- Loading branch information
Showing
6 changed files
with
419 additions
and
15 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,38 @@ | ||
name: Code Linting | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'feature/**' | ||
- 'main' | ||
|
||
jobs: | ||
ts-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Packages | ||
run: npm ci | ||
- name: Build Vite & TSC | ||
run: npm run build | ||
|
||
eslint-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Packages | ||
run: npm ci | ||
- name: Run Eslint | ||
run: npm run lint | ||
|
||
prettier-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Packages | ||
run: npm ci | ||
- name: Run Prettier | ||
run: npm run format |
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,17 @@ | ||
name: Unit Tests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- production | ||
|
||
jobs: | ||
jest-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Packages | ||
run: npm ci | ||
- name: Run Tests | ||
run: npm run test |
Oops, something went wrong.