mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 15:45:04 +08:00
client-unit.yaml, js_lint.yaml, and client-api-test.yaml were all relying on the default `package.json` (repo root) for the pnpm version, which is now deleted. Point them at client/package.json too.
40 lines
1.1 KiB
YAML
40 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 }}
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v5
|
|
with:
|
|
package_json_file: client/package.json
|
|
- run: pnpm 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: pnpm test
|
|
working-directory: client
|