mirror of https://github.com/jetkvm/kvm.git
feat: add frontend linting job to GitHub Actions workflow
This commit is contained in:
parent
84f53873e1
commit
d725bd0aad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue