-
-
Notifications
You must be signed in to change notification settings - Fork 65
58 lines (48 loc) · 1.19 KB
/
client_pipeline.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
48
49
50
51
52
53
54
55
56
57
58
name: Client Pipeline
on:
pull_request:
branches:
- 'main'
- 'develop'
paths:
- 'client/**.js'
- 'client/package*.json'
- 'docker/dockerfiles/Dockerfile.frontend*'
- 'docker-compose.yml'
- '.github/workflows/client_pipeline.yml'
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Node.js dependencies
run: npm install
working-directory: client/
- name: Run linters
run: npm run lint
working-directory: client/
tests:
name: Run client tests
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Node.js dependencies
run: npm install
working-directory: client/
- name: Build app
run: npm run build --if-present
working-directory: client/
- name: Run tests
run: npm test
working-directory: client/