Skip to content

Commit

Permalink
Add tests for production setup
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Sep 13, 2024
1 parent f1f8c3d commit 3bdb21c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,27 @@ jobs:
run: cd examples && docker compose -f docker-compose.local.yml up -d
- name: 'Test hello-world'
run: curl http://hello-world.test
prod-setup:
runs-on: ubuntu-latest
steps:
- name: 'Checkout code'
uses: actions/checkout@v4
- name: 'Setup Docker'
uses: docker-practice/actions-setup-docker@master
- name: 'Debug versions'
run: |
docker --version
- name: 'Add hosts to /etc/hosts'
run: |
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: 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

0 comments on commit 3bdb21c

Please sign in to comment.