Skip to content

Commit 0d899a6

Browse files
committed
Added simple nginx conf validation
1 parent c913efe commit 0d899a6

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/pr.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
fail-fast: false
88
matrix:
9-
version:
9+
version: &template_version
1010
- drupal-7
1111
- drupal-8
1212
- drupal-9
@@ -32,3 +32,25 @@ jobs:
3232
[ -z "$DC" ] || { echo $DC; exit 1; }
3333
DC=$(COMPOSE_SERVER_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/docker-compose.server.yml --file templates/${{ matrix.version }}/docker-compose.redirect.yml config --quiet 2>&1)
3434
[ -z "$DC" ] || { echo $DC; exit 1; }
35+
36+
validate-nginx-conf:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
version: *template_version
42+
compose_file:
43+
- docker-compose.yml
44+
- docker-compose.server.yml
45+
46+
name: Validate nginx conf (${{ matrix.version }}/${{ matrix.compose_file}})
47+
steps:
48+
- uses: actions/checkout@v5
49+
50+
- name: Create docker network
51+
run: |
52+
docker network create frontend
53+
54+
- name: Validate nginx conf
55+
run: |
56+
COMPOSE_DOMAIN=test.itkdev.dk docker compose --file templates/${{ matrix.version }}/${{ matrix.compose_file}} run --rm nginx nginx -t

0 commit comments

Comments
 (0)