From d8f3531b50e8f52eed0ae67603ac6212ac3934c4 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Thu, 22 Feb 2024 13:28:07 +0530 Subject: [PATCH] chore: added type and lint check for frontend --- ...l-request.yml => check-fe-ts-and-lint.yml} | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) rename .github/workflows/{check-fe-pull-request.yml => check-fe-ts-and-lint.yml} (67%) diff --git a/.github/workflows/check-fe-pull-request.yml b/.github/workflows/check-fe-ts-and-lint.yml similarity index 67% rename from .github/workflows/check-fe-pull-request.yml rename to .github/workflows/check-fe-ts-and-lint.yml index 75465a014..17e5a9d74 100644 --- a/.github/workflows/check-fe-pull-request.yml +++ b/.github/workflows/check-fe-ts-and-lint.yml @@ -1,4 +1,4 @@ -name: Check Frontend Pull Request +name: Check Frontend Type and Lint check on: pull_request: @@ -10,8 +10,8 @@ on: - "frontend/.eslintrc.js" jobs: - check-fe-pr: - name: Check + check-fe-ts-lint: + name: Check Frontend Type and Lint check runs-on: ubuntu-latest timeout-minutes: 15 @@ -25,12 +25,11 @@ jobs: cache: "npm" cache-dependency-path: frontend/package-lock.json - name: ๐Ÿ“ฆ Install dependencies - run: npm ci --only-production --ignore-scripts + run: npm install working-directory: frontend - # - - # name: ๐Ÿงช Run tests - # run: npm run test:ci - # working-directory: frontend - - name: ๐Ÿ—๏ธ Run build - run: npm run build + - name: ๐Ÿ—๏ธ Run Type check + run: npm run type:check + working-directory: frontend + - name: ๐Ÿ—๏ธ Run Link check + run: npm run lint:fix working-directory: frontend