From 74a89b39efa2ca9ec08d365915355c234dec10b9 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 21 Jul 2026 10:09:04 +0000 Subject: [PATCH] ci: run lint before frontend build Co-authored-by: naiba/CloudCode --- .github/workflows/frontend-ci.yml | 51 ++++++++++++++++--------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 5972e66..4431ac6 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -1,34 +1,37 @@ name: Frontend CI on: - pull_request: - branches: - - main - push: - branches: - - main + pull_request: + branches: + - main + push: + branches: + - main jobs: - build-and-test: - runs-on: ubuntu-latest - timeout-minutes: 15 + build-and-test: + runs-on: ubuntu-latest + timeout-minutes: 15 - steps: - - name: Checkout code - uses: actions/checkout@v7 + steps: + - name: Checkout code + uses: actions/checkout@v7 - - name: Setup Node - uses: actions/setup-node@v7 - with: - node-version: 20 - cache: npm - cache-dependency-path: package-lock.json + - name: Setup Node + uses: actions/setup-node@v7 + with: + node-version: 20 + cache: npm + cache-dependency-path: package-lock.json - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: npm ci - - name: Build frontend - run: npm run build + - name: Run lint + run: npm run lint - - name: Run unit tests - run: npm run test + - name: Build frontend + run: npm run build + + - name: Run unit tests + run: npm run test