2021-09-14 23:56:22 +02:00
|
|
|
# https://help.github.com/actions
|
2020-04-14 11:53:56 +02:00
|
|
|
|
2021-09-14 23:56:22 +02:00
|
|
|
name: Server CI
|
2019-10-30 16:01:05 +01:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-03-01 16:45:29 +01:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
|
|
|
|
- name: Check configuration
|
|
|
|
uses: docker://nginx:latest
|
|
|
|
with:
|
|
|
|
entrypoint: nginx
|
|
|
|
args: -c /github/workspace/nginx.conf -t
|
|
|
|
|
2019-10-30 16:01:05 +01:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-11-04 06:20:15 +01:00
|
|
|
- uses: actions/checkout@v2.3.4
|
2019-10-30 16:01:05 +01:00
|
|
|
|
|
|
|
- name: Test with server-configs-test
|
2021-09-14 01:01:03 +02:00
|
|
|
uses: h5bp/server-configs-test@5.0.2
|
2019-10-30 16:01:05 +01:00
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
server: nginx
|
|
|
|
root-path: /var/www/server.localhost
|
|
|
|
certs-path: /etc/nginx/certs
|
|
|
|
configs-volumes: test/vhosts:/etc/nginx/conf.d;h5bp:/etc/nginx/h5bp;nginx.conf:/etc/nginx/nginx.conf;mime.types:/etc/nginx/mime.types
|
|
|
|
tests: basic-file-access;caching;cache-busting;custom-errors;forbidden-files;precompressed-files-gzip;rewrites;ssl
|
|
|
|
|
|
|
|
- name: Benchmark
|
2021-09-14 01:01:03 +02:00
|
|
|
uses: h5bp/server-configs-test@5.0.2
|
2019-10-30 16:01:05 +01:00
|
|
|
with:
|
|
|
|
command: benchmark
|
|
|
|
server: nginx
|
|
|
|
root-path: /var/www/server.localhost
|
|
|
|
certs-path: /etc/nginx/certs
|
|
|
|
configs-volumes: test/vhosts:/etc/nginx/conf.d;h5bp:/etc/nginx/h5bp;nginx.conf:/etc/nginx/nginx.conf;mime.types:/etc/nginx/mime.types
|