-
Notifications
You must be signed in to change notification settings - Fork 1.1k
43 lines (43 loc) · 1.26 KB
/
client-api-test.yaml
File metadata and controls
43 lines (43 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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