From d725bd0aadd0b126c82cacc60a1e453b85a103b7 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Tue, 25 Mar 2025 10:28:52 +0100 Subject: [PATCH] feat: add frontend linting job to GitHub Actions workflow --- .github/workflows/build.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68e1cb5..061aaff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,27 @@ on: types: [submitted] jobs: + frontend-lint: + runs-on: buildjet-4vcpu-ubuntu-2204 + name: Lint + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: v21.1.0 + cache: "npm" + cache-dependency-path: "ui/package-lock.json" + - name: Install dependencies + run: | + cd ui + npm ci + - name: Lint frontend + run: | + cd ui + npm run lint + build: runs-on: buildjet-4vcpu-ubuntu-2204 name: Build @@ -19,12 +40,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: v21.1.0 - cache: 'npm' - cache-dependency-path: '**/package-lock.json' + cache: "npm" + cache-dependency-path: "**/package-lock.json" - name: Set up Golang uses: actions/setup-go@v4 with: - go-version: '1.24.0' + go-version: "1.24.0" - name: Build frontend run: | make frontend