Skip to content

Commit 0420fb1

Browse files
thenav56tnagorra
authored andcommitted
amend! chore(ci): move firebase-test before docker build
- to avoid waiting for firebase simulator to start
1 parent c5f4655 commit 0420fb1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ jobs:
108108
echo "tagged_image=${IMAGE_NAME}:${TAG}" >> $GITHUB_OUTPUT
109109
echo "::notice::Tagged docker image: ${IMAGE_NAME}:${TAG}"
110110
111+
- name: Start firebase emulator (in background)
112+
env:
113+
DOCKER_IMAGE: ${{ steps.prep.outputs.tagged_image }}
114+
run: |
115+
docker compose up -d firebase-test
116+
111117
- name: 🐳 Set up Docker Buildx
112118
id: buildx
113119
uses: docker/setup-buildx-action@v3
@@ -124,11 +130,11 @@ jobs:
124130
cache-to: type=gha,mode=max
125131

126132
- name: Start app resources
127-
timeout-minutes: 3
133+
timeout-minutes: 1
128134
env:
129135
DOCKER_IMAGE: ${{ steps.prep.outputs.tagged_image }}
130136
run: |
131-
timeout 120s docker compose run --rm test ./manage.py wait_for_resources --all || {
137+
timeout 60s docker compose run --rm test ./manage.py wait_for_resources --all || {
132138
echo 'Failed to wait for resources'
133139
docker compose logs
134140
exit 1

0 commit comments

Comments
 (0)