-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.06 KB
/
client-tests.yml
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
44
45
46
47
name: Client Tests
on:
push:
paths:
- 'client/**'
- 'shared/**'
- '.github/workflows/client-tests.yml'
- '/*' # include changes in root
- '!api/**' # exclude api folder
- '!infrastructure/**' # exclude infra folder
- 'package.json'
workflow_dispatch:
jobs:
client-integration-tests:
name: Client Integration Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Node setup
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
working-directory: .
run: pnpm install
- name: Run Client tests
working-directory: client
run: pnpm test