From b1941628380ecb902fad773c63c2c1d6d38fde28 Mon Sep 17 00:00:00 2001 From: Advayp <69655599+Advayp@users.noreply.github.com> Date: Wed, 15 Jan 2025 23:21:13 -0800 Subject: [PATCH] Add workflow for linting frontend (#30) --- .github/workflows/lint-frontend.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint-frontend.yml diff --git a/.github/workflows/lint-frontend.yml b/.github/workflows/lint-frontend.yml new file mode 100644 index 0000000..aa24059 --- /dev/null +++ b/.github/workflows/lint-frontend.yml @@ -0,0 +1,26 @@ +name: Lint Frontend + +on: + pull_request: + branches: [main] + paths: + - 'frontend/**' + +defaults: + run: + working-directory: ./frontend + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 23 + - name: Install dependencies + run: npm ci --legacy-peer-deps + - name: Lint codebase + run: npm run lint