Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
- name: 'Copy configuration files'
run: cp -r configs-local configs
- name: 'Create empty certificate files'
run: |
echo "{}" > certificates/acme.json
chmod 600 certificates/acme.json
- name: 'Start reverse proxy with local setup'
run: docker compose -f docker-compose.local.yml up -d --wait
- name: 'Test dashboard'
Expand All @@ -25,6 +29,9 @@ jobs:
run: cd examples && docker compose -f docker-compose.local.yml up -d
- name: 'Test hello-world'
run: curl http://hello-world.test
- name: 'Output logs'
run: docker compose -f docker-compose.prod.yml logs

prod-setup:
runs-on: ubuntu-latest
steps:
Expand All @@ -40,12 +47,18 @@ jobs:
sudo echo "127.0.0.1 reverse-proxy.test" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
- name: 'Copy configuration files'
run: cp -r configs-local configs
- name: 'Start reverse proxy with local setup'
run: cp -r configs-prod configs
- name: 'Create empty certificate files'
run: |
echo "{}" > certificates/acme.json
chmod 600 certificates/acme.json
- name: 'Start reverse proxy with production setup'
run: docker compose -f docker-compose.prod.yml up -d --wait
- name: 'Test dashboard'
run: curl http://reverse-proxy.test/dashboard/#/
- name: 'Start hello-world example'
run: cd examples && docker compose -f docker-compose.prod.yml up -d
- name: 'Test hello-world'
run: curl http://hello-world.test
- name: 'Output logs'
run: docker compose -f docker-compose.prod.yml logs