Skip to content

Commit 1a40fc2

Browse files
committed
Update build-and-publish.yml
1 parent de4f70c commit 1a40fc2

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -65,36 +65,3 @@ jobs:
6565
cache-from: type=gha
6666
cache-to: type=gha,mode=max
6767

68-
test:
69-
runs-on: ubuntu-latest
70-
needs: build-and-push
71-
if: github.event_name == 'pull_request'
72-
73-
steps:
74-
- name: Checkout repository
75-
uses: actions/checkout@v4
76-
77-
- name: Create test log file
78-
run: |
79-
mkdir -p logs
80-
echo '{"time":"2024-01-20T10:00:00Z","ServiceName":"test-service","RequestMethod":"GET","RequestPath":"/api/test","DownstreamStatus":200,"Duration":0.05}' > logs/traefik.log
81-
82-
- name: Start services
83-
run: |
84-
echo "TRAEFIK_LOG_PATH=./logs" > .env
85-
docker compose up -d
86-
87-
- name: Wait for services
88-
run: sleep 10
89-
90-
- name: Test backend health
91-
run: |
92-
curl -f http://localhost:3001/health || exit 1
93-
94-
- name: Test frontend
95-
run: |
96-
curl -f http://localhost:3000 || exit 1
97-
98-
- name: Show logs if failed
99-
if: failure()
100-
run: docker compose logs

0 commit comments

Comments
 (0)