Merge pull request #1442 from akhilmhdh/ci/frontend-ts-check

chore: added type and lint check for frontend ci/cd
This commit is contained in:
Maidul Islam
2024-02-22 04:54:23 -05:00
committed by GitHub
@@ -1,4 +1,4 @@
name: Check Frontend Pull Request name: Check Frontend Type and Lint check
on: on:
pull_request: pull_request:
@@ -10,8 +10,8 @@ on:
- "frontend/.eslintrc.js" - "frontend/.eslintrc.js"
jobs: jobs:
check-fe-pr: check-fe-ts-lint:
name: Check name: Check Frontend Type and Lint check
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15 timeout-minutes: 15
@@ -25,12 +25,11 @@ jobs:
cache: "npm" cache: "npm"
cache-dependency-path: frontend/package-lock.json cache-dependency-path: frontend/package-lock.json
- name: 📦 Install dependencies - name: 📦 Install dependencies
run: npm ci --only-production --ignore-scripts run: npm install
working-directory: frontend working-directory: frontend
# - - name: 🏗️ Run Type check
# name: 🧪 Run tests run: npm run type:check
# run: npm run test:ci working-directory: frontend
# working-directory: frontend - name: 🏗️ Run Link check
- name: 🏗️ Run build run: npm run lint:fix
run: npm run build
working-directory: frontend working-directory: frontend