-
Notifications
You must be signed in to change notification settings - Fork 6
168 lines (135 loc) · 4.93 KB
/
integration.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
name: deploy
on: [pull_request, push]
jobs:
docker:
runs-on: ubuntu-18.04
steps:
- uses: "actions/checkout@v2"
- name: start backend containers
run: docker-compose up -d backend
env:
SAMPLE_URL: http://aaew64.bbaw.de/resources/tla-data/tla-sample-20210115-1000t.tar.gz
ES_PORT: 9201
BACKEND_PORT: 8090
LISTEN_PORT: 8080
- name: show tla-backend container logs
run: docker-compose logs backend
- name: wait for backend to be populated with lemma data
uses: "cygnetdigital/[email protected]"
with:
url: http://localhost:8090/lemma/get/100690
responseCode: 200
interval: 5000
timeout: 120000
continue-on-error: true
- name: wait for backend to be populated with meta data
uses: "cygnetdigital/[email protected]"
with:
url: http://localhost:8090/version
responseCode: 200
interval: 3000
timeout: 30000
continue-on-error: true
- name: show tla-ingest container logs
run: docker-compose logs populate
- name: query backend endpoint URL paths list
run: curl -s localhost:8090/
- name: query backend version info
run: curl -s localhost:8090/version
- name: set up JDK
uses: actions/[email protected]
with:
java-version: 11
- name: make gradle wrapper executable
run: chmod +x gradlew
- name: install third-party resources
run: ./gradlew install
- name: run Selenium tests
run: ./gradlew selenium --info
- name: start frontend container
run: docker-compose up -d frontend
env:
ES_PORT: 9201
BACKEND_PORT: 8090
LISTEN_PORT: 8080
FONTAWESOME_VERSION: 5.12.1
BOOTSTRAP_VERSION: 4.4.1
JQUERY_VERSION: 3.5.1
COOKIEJS_VERSION: 2.2.1
- name: wait for frontend to respond
uses: "cygnetdigital/[email protected]"
with:
url: http://localhost:8080
responseCode: 200
interval: 2000
timeout: 120000
- name: curl frontend from shell
run: curl -s localhost:8080/
- name: screenshot lemma search results page
uses: "flameddd/[email protected]"
with:
url: http://localhost:8080/lemma/search/
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of lemma search results page
uses: "actions/[email protected]"
with:
path: screenshots
name: lemma-search
- name: screenshot lemma details page
uses: "flameddd/[email protected]"
with:
url: http://localhost:8080/lemma/59920?lang=de
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of lemma details page
uses: "actions/[email protected]"
with:
path: screenshots
name: lemma-details
- name: screenshot sentence details page
uses: "flameddd/[email protected]"
with:
url: http://localhost:8080/sentence/IBUBdQmK4memIEBelX9qTCsmuS8#IBUBdzrGyezPxknfiltJIvlQAn0
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of sentence details page
uses: "actions/[email protected]"
with:
path: screenshots
name: sentence-details
- name: screenshot ths details page
uses: "flameddd/[email protected]"
with:
url: http://localhost:8080/thesaurus/7pupjz
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of thesaurus entry details page
uses: "actions/[email protected]"
with:
path: screenshots
name: ths-details
- name: screenshot sentence search form
uses: "flameddd/[email protected]"
with:
url: "http://localhost:8080/search?sentence&tokens[0].lemma.id=d2978&tokens[1].lemma.id=10070"
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of sentence search form
uses: "actions/[email protected]"
with:
path: screenshots
name: sentence-search-form
- name: screenshot sentence search results
uses: "flameddd/[email protected]"
with:
url: "http://localhost:8080/sentence/search?tokens[0].lemma.id=74950"
devices: iPhone 6,iPhone 6 landscape,Nexus 7,iPad Pro,Galaxy S III landscape,iPad Pro landscape
type: png
- name: upload screenshots of sentence search results page
uses: "actions/[email protected]"
with:
path: screenshots
name: sentence-search-results
...