-
-
Notifications
You must be signed in to change notification settings - Fork 637
50 lines (43 loc) · 1.65 KB
/
server.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
# https://docs.github.com/actions
name: Server CI
on: [push, pull_request]
jobs:
# Following job not possible yet as too complicated directory mapping on the container.
# check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Check configuration
# uses: docker://httpd:latest
# with:
# entrypoint: httpd
# args: -f /github/workspace/httpd.conf -t
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare configs
run: |
sed -ri \
-e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \
-e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
-e 's!^(\s*TransferLog)\s+\S+!\1 /proc/self/fd/1!g' \
"httpd.conf"
- name: Test with server-configs-test
uses: h5bp/[email protected]
with:
command: test
server: httpd
root-path: /usr/local/apache2/htdocs
certs-path: /usr/local/apache2/certs
configs-volumes: test/vhosts:/usr/local/apache2/vhosts;h5bp:/usr/local/apache2/h5bp;httpd.conf:/usr/local/apache2/conf/httpd.conf
tests: basic-file-access;caching;cache-busting;custom-errors;forbidden-files;enforce-gzip;precompressed-files-gzip;rewrites;ssl
- name: Benchmark
uses: h5bp/[email protected]
with:
command: benchmark
server: httpd
root-path: /usr/local/apache2/htdocs
certs-path: /usr/local/apache2/certs
configs-volumes: test/vhosts:/usr/local/apache2/vhosts;h5bp:/usr/local/apache2/h5bp;httpd.conf:/usr/local/apache2/conf/httpd.conf