Files
galaxy/.github/workflows/client-unit.yaml
T
Dannon Baker e7c30fecb3 Update client-unit workflow to use new build script
Replace gulp reference with the new Node.js build script in the
client unit test CI workflow.
2025-12-07 21:36:27 -05:00

38 lines
1.1 KiB
YAML

name: Client Unit Testing
on:
push:
paths:
- 'client/**'
- '.github/workflows/client-unit.yaml'
pull_request:
paths:
- 'client/**'
- '.github/workflows/client-unit.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
client-unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Read Node.js version
id: node-version
run: echo "version=$(cat 'client/.node_version')" >> $GITHUB_OUTPUT
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: ${{ steps.node-version.outputs.version }}
cache: 'yarn'
cache-dependency-path: 'client/yarn.lock'
- run: yarn install --frozen-lockfile
working-directory: client
- name: Pre-build (icons and plugins)
run: node scripts/build.mjs
working-directory: client
- name: Run Vitest Unit Tests
run: yarn test
working-directory: client