mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 09:01:31 +00:00
55186d95f2
- Rename hive.yml → spinifex.yml - Update workflow names, path triggers, working directories - Update release.yml tarball references - Update e2e.yml test paths - Update ui.yml frontend paths
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: UI Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
paths:
|
|
- spinifex/services/spinifexui/frontend/**
|
|
- .github/workflows/ui.yml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
ui_build_and_test:
|
|
name: UI Build and Test
|
|
runs-on: ubuntu-24.04
|
|
defaults:
|
|
run:
|
|
working-directory: spinifex/services/spinifexui/frontend
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
sparse-checkout: spinifex/services/spinifexui/frontend
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
package_json_file: spinifex/services/spinifexui/frontend/package.json
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
cache: "pnpm"
|
|
cache-dependency-path: spinifex/services/spinifexui/frontend/pnpm-lock.yaml
|
|
node-version-file: spinifex/services/spinifexui/frontend/.nvmrc
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run Biome Check
|
|
run: pnpm check
|
|
|
|
- name: Run Tests with Coverage
|
|
run: pnpm test:coverage
|
|
|
|
- name: Build Frontend
|
|
run: pnpm build
|