From d413ca58ce097efb71067680183cce6813866999 Mon Sep 17 00:00:00 2001 From: Ridit Jain <112847735+Ridit07@users.noreply.github.com> Date: Wed, 4 Jun 2025 02:10:45 +0530 Subject: [PATCH] Add ESLint workflow --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..de6333a4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Lint + +on: + pull_request: + branches: + - main + +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + cache-dependency-path: | + InterviewPro/package-lock.json + InterviewPro/functions/package-lock.json + - name: Install dependencies (web app) + working-directory: InterviewPro + run: npm ci + - name: Run ESLint (web app) + working-directory: InterviewPro + run: npm run lint + - name: Install dependencies (functions) + working-directory: InterviewPro/functions + run: npm ci + - name: Run ESLint (functions) + working-directory: InterviewPro/functions + run: npm run lint