-
Notifications
You must be signed in to change notification settings - Fork 19
/
bitbucket-pipelines.yml
55 lines (52 loc) · 1.36 KB
/
bitbucket-pipelines.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
# Run application tests
image: node:20
pipelines:
default:
- parallel:
- step:
name: Run API tests
caches:
- api-node
script:
- cd api
# Install dependencies
- npm install
# Run tests
- npm run test-ci
- step:
name: Run API formatting and code quality checks
caches:
- api-node
script:
- cd api
# Install dependencies
- npm install
# Run linter and prettier
- npm run lint
- npm run prettier
- step:
size: 2x # Double the memory
name: Run frontend tests
caches:
- frontend-node
script:
- cd frontend
# Install dependencies
- npm install
# Run tests using a script that minimizes memory usage
- npm run test-ci
- step:
name: Run frontend formatting and code quality checks
caches:
- frontend-node
script:
- cd frontend
# Install dependencies
- npm install
# Run linter and prettier
- npm run lint
- npm run prettier
definitions:
caches:
api-node: ./api/node-modules
frontend-node: ./frontend/node-modules