-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.2 KB
/
Copy pathtest-web-client.yml
File metadata and controls
56 lines (47 loc) · 1.2 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test Web Client
on:
workflow_call:
inputs:
node_version:
description: 'Node.js version to use'
required: false
type: string
default: '20'
jobs:
test:
runs-on: ubuntu-latest
name: Test Web Client
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: recursive
token: ${{ github.token }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
cache-dependency-path: 'web-client/package-lock.json'
- name: Install dependencies
shell: bash
working-directory: web-client
run: npm ci
- name: Run TypeScript type check
shell: bash
working-directory: web-client
run: npm run type-check
- name: Run linter
shell: bash
working-directory: web-client
run: npm run lint
- name: Build web client
shell: bash
working-directory: web-client
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: web-client-build
path: web-client/dist/
if-no-files-found: ignore