feat: add frontend linting job to GitHub Actions workflow

This commit is contained in:
Adam Shiervani 2025-03-25 10:28:52 +01:00
parent 84f53873e1
commit d725bd0aad
1 changed files with 24 additions and 3 deletions

View File

@ -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