-
Notifications
You must be signed in to change notification settings - Fork 5
75 lines (67 loc) · 1.96 KB
/
run-npm-test.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Run Tests
on:
pull_request:
types: [ opened, synchronize ]
push:
branches:
- 'master'
jobs:
run-test:
runs-on: ubuntu-latest
services:
### Workflow Deployment Test Setup ###
workflow-test-engine:
image: planqk/workflow-engine-test:v1.0.0
ports:
- 8090:8090
### End of Workflow Deployment Test Setup ###
### Pattern-based Test Setup ###
db:
image: planqk/db-test:v1.1.0
ports:
- 5060:5060
env:
POSTGRES_USERS: 'planqk:planqk|patternatlas:patternatlas|qprov:qprov'
POSTGRES_DATABASES: 'planqk:planqk|patternatlas:patternatlas|qprov:qprov'
QC_ATLAS_CONTENT_REPOSITORY_BRANCH: 'master'
ATLAS_DB: planqk
PATTERNATLAS_DB: patternatlas
pattern-atlas-api:
image: patternatlas/pattern-atlas-api:v1.9.0
ports:
- 1977:1977
env:
JDBC_DATABASE_URL: db
JDBC_DATABASE_USERNAME: patternatlas
JDBC_DATABASE_PASSWORD: patternatlas
JDBC_DATABASE_PORT: 5060
DB_INIT_USER: patternatlas
DB_INIT_PASSWORD: patternatlas
LATEX_RENDERER_HOST_NAME: latex-renderer
LATEX_RENDERER_PORT: 5030
JDBC_DATABASE_NAME: patternatlas
PATTERN_ATLAS_FETCH_INITIAL_DATA: 'true'
HAL_EXPLORER: 'false'
SPRING_PROFILES_ACTIVE: docker
qc-atlas:
image: planqk/atlas:v3.1.4
ports:
- 6626:6626
env:
POSTGRES_HOSTNAME: db
POSTGRES_PORT: 5060
POSTGRES_USER: planqk
POSTGRES_PASSWORD: planqk
POSTGRES_DB: planqk
### End of Pattern-based Test Setup ###
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: run tests
run: |
npm ci
npm run build
npm test
working-directory: ./components/bpmn-q