-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (66 loc) · 1.81 KB
/
validate.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
76
77
78
name: Validate
on:
workflow_call:
jobs:
validate_installation:
name: Validate Installation
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./control-plane
shell: bash
steps:
- uses: actions/checkout@v3
- name: Validate main script
run: bash -n experiencelab.sh
- name: Validate container script
run: bash -n containerRun.sh
- name: Validate Dockerfile
run: docker build .
validate_portal:
name: Validate Developer Portal
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./developer-portal
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm install
- name: Lint files
run: npm run-script lint
- name: Create temporary environment file
run: |
mkdir -p src/environments
echo "
export const environment = {
tenantId: \"\",
clientId: \"\",
apiHost: \"\",
dataPartition: \"\",
scopes: \"\",
redirectUrl: \"\",
instanceName: \"\",
domain: \"\",
buildNumber: \"\",
powerBiConnectorFileName: \"\",
tnoTemplateSpecUrl: \"\"
};
" > src/environments/environment.ts
- name: Unit tests
run: npm run-script test:prod
- name: Docker build
run: docker build .
validate_data_load:
name: Validate Data Load
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./data-load
shell: bash
steps:
- uses: actions/checkout@v3
- name: Validate TNO download script
run: bash -n open-test-data/downloadTnoData.sh