-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.36 KB
/
build-verify.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
name: build-verify-package
on:
push:
paths-ignore:
#- '.github/**'
- '.gitignore'
- 'LICENSE'
- '*.md'
pull_request:
paths-ignore:
- '.github/**'
- '.gitignore'
- 'LICENSE'
- '*.md'
jobs:
build-verify-package:
runs-on: ubuntu-latest
environment: Build
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
- name: Dependencies installation
run: npm install
- name: Run unit tests
run: npm run test
# Skip at the moment as it is failing in CI, don't know why...
#- name: Run e2e tests
# run: |
# export DEBUG=testcontainers*
# npm run test:e2e
- name: Run e2e tests
run: |
npm run test:e2e --runTestsByPath --detectOpenHandles --forceExit test/orders.api.e2e-spec.ts
npm run test:e2e --runTestsByPath --detectOpenHandles --forceExit test/orders.api.postman.e2e-spec.ts
npm run test:e2e --runTestsByPath --detectOpenHandles --forceExit test/order.service.e2e-spec.ts
npm run test:e2e --runTestsByPath --detectOpenHandles --forceExit test/order-event.listener.e2e-spec.ts
- name: Typescript compilation and Package build
run: npm run build