🐛 fix: make both docker compose commands consistent

- Add cd command to both steps

- Use same working directory pattern

- Ensures consistent volume mount behavior
This commit is contained in:
2026-04-08 09:53:33 +02:00
parent 934a7d9eb5
commit 4e21f3b98f

View File

@@ -167,10 +167,10 @@ jobs:
run: echo "DEPS_HASH=${{ needs.build-cache.outputs.deps_hash }}" >> $GITHUB_ENV
- name: Generate Swagger Docs using Docker Compose
run: cd /workspace/arcodange/dance-lessons-coach && docker compose -f docker-compose.build.yml run --rm build-cache sh -c "go generate ./pkg/server/"
run: cd /workspace/arcodange/dance-lessons-coach && docker compose -f docker-compose.build.yml run --rm -w /workspace build-cache sh -c "go generate ./pkg/server/"
- name: Build all packages using Docker Compose
run: docker compose -f docker-compose.build.yml run --rm -w /workspace build-cache sh -c "go build ./..."
run: cd /workspace/arcodange/dance-lessons-coach && docker compose -f docker-compose.build.yml run --rm -w /workspace build-cache sh -c "go build ./..."
- name: Wait for PostgreSQL to be ready