mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 17:11:30 +00:00
5dc945a6df
Bumps the github-actions group with 2 updates: [actions/setup-go](https://github.com/actions/setup-go) and [actions/setup-node](https://github.com/actions/setup-node). Updates `actions/setup-go` from 6 to 7 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v6...v7) Updates `actions/setup-node` from 6 to 7 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-go dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: UI Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- dev
|
|
paths:
|
|
- spinifex/services/spinifexui/frontend/**
|
|
- .github/workflows/ui.yml
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
paths:
|
|
- spinifex/services/spinifexui/frontend/**
|
|
- .github/workflows/ui.yml
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ui_build_and_test:
|
|
name: UI Build and Test
|
|
runs-on: ubuntu-26.04
|
|
defaults:
|
|
run:
|
|
working-directory: spinifex/services/spinifexui/frontend
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v7
|
|
with:
|
|
sparse-checkout: spinifex/services/spinifexui/frontend
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v6
|
|
with:
|
|
package_json_file: spinifex/services/spinifexui/frontend/package.json
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v7
|
|
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 Lint
|
|
run: pnpm lint
|
|
|
|
- name: Run Tests with Coverage
|
|
run: pnpm test:coverage
|
|
|
|
- name: Build Frontend
|
|
run: pnpm build
|