41
41
working-directory : app
42
42
run : npm run build:test
43
43
44
+ - name : Generate SSL certificates
45
+ working-directory : app
46
+ run : |
47
+ mkdir ./ssl
48
+ openssl req -x509 -nodes \
49
+ -days 365 \
50
+ -newkey rsa:2048 \
51
+ -keyout ./ssl/certificate.key \
52
+ -out ./ssl/certificate.crt \
53
+ -subj="/O=Moodle"
54
+
44
55
- name : Build Behat plugin
45
56
working-directory : app
46
57
run : ./scripts/build-behat-plugin.js ../plugin
@@ -111,11 +122,12 @@ jobs:
111
122
112
123
- uses : actions/cache/save@v4
113
124
with :
114
- key : build-${{ github.sha }}
115
- path : |
116
- app/node_modules/**/*
117
- app/www/**/*
118
- plugin/**/*
125
+ key : build-${{ github.sha }}
126
+ path : |
127
+ app/ssl/**/*
128
+ app/node_modules/**/*
129
+ app/www/**/*
130
+ plugin/**/*
119
131
120
132
behat :
121
133
runs-on : ubuntu-latest
@@ -157,14 +169,22 @@ jobs:
157
169
with :
158
170
key : build-${{ github.sha }}
159
171
path : |
172
+ app/ssl/**/*
160
173
app/node_modules/**/*
161
174
app/www/**/*
162
175
plugin/**/*
163
176
164
177
- name : Launch Docker images
165
178
working-directory : app
166
179
run : |
167
- docker run -d --rm -p 8001:80 --name moodleapp -v ./www:/usr/share/nginx/html -v ./nginx.conf:/etc/nginx/conf.d/default.conf nginx:alpine
180
+ docker run -d --rm \
181
+ -p 8001:443 \
182
+ --name moodleapp \
183
+ -v ./www:/usr/share/nginx/html \
184
+ -v ./nginx.conf:/etc/nginx/conf.d/default.conf \
185
+ -v ./ssl/certificate.crt:/etc/ssl/certificate.crt \
186
+ -v ./ssl/certificate.key:/etc/ssl/certificate.key \
187
+ nginx:alpine
168
188
docker run -d --rm -p 8002:80 --name bigbluebutton moodlehq/bigbluebutton_mock:latest
169
189
170
190
- name : Initialise moodle-plugin-ci
@@ -184,7 +204,7 @@ jobs:
184
204
DB : pgsql
185
205
MOODLE_BRANCH : ${{ github.event.inputs.moodle_branch || 'main' }}
186
206
MOODLE_REPO : ${{ github.event.inputs.moodle_repository || 'https://github.com/moodle/moodle.git' }}
187
- MOODLE_BEHAT_IONIC_WWWROOT : http ://localhost:8001
207
+ MOODLE_BEHAT_IONIC_WWWROOT : https ://localhost:8001
188
208
MOODLE_BEHAT_DEFAULT_BROWSER : chrome
189
209
190
210
- name : Update config
0 commit comments