Skip to content

Commit b15a02b

Browse files
committed
Add logs to tests GitHub action
1 parent 8969146 commit b15a02b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
1818
- name: 'Copy configuration files'
1919
run: cp -r configs-local configs
20+
- name: 'Create empty certificate files'
21+
run: |
22+
echo "{}" > certificates/acme.json
23+
chmod 600 certificates/acme.json
2024
- name: 'Start reverse proxy with local setup'
2125
run: docker compose -f docker-compose.local.yml up -d --wait
2226
- name: 'Test dashboard'
@@ -25,6 +29,9 @@ jobs:
2529
run: cd examples && docker compose -f docker-compose.local.yml up -d
2630
- name: 'Test hello-world'
2731
run: curl http://hello-world.test
32+
- name: 'Output logs'
33+
run: docker compose -f docker-compose.prod.yml logs
34+
2835
prod-setup:
2936
runs-on: ubuntu-latest
3037
steps:
@@ -41,6 +48,10 @@ jobs:
4148
sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
4249
- name: 'Copy configuration files'
4350
run: cp -r configs-local configs
51+
- name: 'Create empty certificate files'
52+
run: |
53+
echo "{}" > certificates/acme.json
54+
chmod 600 certificates/acme.json
4455
- name: 'Start reverse proxy with local setup'
4556
run: docker compose -f docker-compose.prod.yml up -d --wait
4657
- name: 'Test dashboard'
@@ -49,3 +60,5 @@ jobs:
4960
run: cd examples && docker compose -f docker-compose.prod.yml up -d
5061
- name: 'Test hello-world'
5162
run: curl http://hello-world.test
63+
- name: 'Output logs'
64+
run: docker compose -f docker-compose.prod.yml logs

0 commit comments

Comments
 (0)