Files
galaxy/.github/workflows/client-api-test.yaml
T
Dannon Baker 2c8b291074 Point more pnpm setups at client/package.json
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.
2026-04-17 14:31:33 -04:00

46 lines
1.3 KiB
YAML

name: Client API Testing
on:
push:
paths:
- 'client-api/**'
- 'client/src/api/**'
- '.github/workflows/client-api-test.yaml'
pull_request:
paths:
- 'client-api/**'
- 'client/src/api/**'
- '.github/workflows/client-api-test.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
client-api-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
- name: Install client dependencies
run: pnpm install --frozen-lockfile
working-directory: client
- name: Install client-api dependencies
run: pnpm install --frozen-lockfile
working-directory: client-api
- name: Build client-api
run: pnpm run build
working-directory: client-api
- name: Run client-api tests
run: pnpm test
working-directory: client-api