-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add TypeScript compilation step to frontend workflows
- Loading branch information
1 parent
f3db39c
commit d635c69
Showing
2 changed files
with
57 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,26 @@ | ||
name: Lint Frontend | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'frontend/**' | ||
- '.github/workflows/frontend-lint.yml' | ||
|
||
jobs: | ||
lint: | ||
name: Lint frontend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
working-directory: frontend | ||
run: npm ci | ||
- name: TypeScript compilation | ||
working-directory: frontend | ||
run: npm run tsc | ||
- name: Lint | ||
working-directory: frontend | ||
run: npm run lint |
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,31 @@ | ||
name: Frontend Tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'frontend/**' | ||
- '.github/workflows/frontend-tests.yml' | ||
|
||
jobs: | ||
test: | ||
name: FE Unit Tests (20) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
working-directory: frontend | ||
run: npm ci | ||
- name: TypeScript compilation | ||
working-directory: frontend | ||
run: npm run tsc | ||
- name: Run tests and collect coverage | ||
working-directory: frontend | ||
run: npm run test:coverage | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./frontend/coverage/coverage-final.json | ||
flags: frontend |