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]
|
types: [submitted]
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
runs-on: buildjet-4vcpu-ubuntu-2204
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
||||||
name: Build
|
name: Build
|
||||||
|
@ -19,12 +40,12 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: v21.1.0
|
node-version: v21.1.0
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
cache-dependency-path: '**/package-lock.json'
|
cache-dependency-path: "**/package-lock.json"
|
||||||
- name: Set up Golang
|
- name: Set up Golang
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.24.0'
|
go-version: "1.24.0"
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: |
|
run: |
|
||||||
make frontend
|
make frontend
|
||||||
|
|
Loading…
Reference in New Issue