Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/client-api-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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@v4
- 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
2 changes: 1 addition & 1 deletion .github/workflows/publish_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
run: npm run sync-version
working-directory: 'client-api'
- name: build client-api
run: npm install && npm run build
run: pnpm install && pnpm run build
working-directory: 'client-api'
- name: publish client-api
if: (github.event_name == 'workflow_dispatch' && inputs.release_type == 'release') || (github.event_name == 'release' && !github.event.release.prerelease)
Expand Down
Loading
Loading