Skip to content

Commit 2e9cc7d

Browse files
committed
Refactor GitHub Actions workflow by renaming the build job for clarity and updating dependencies in the test job to reflect the new job structure. This change enhances the readability and maintainability of the CI configuration.
1 parent a1ff815 commit 2e9cc7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
BASE_IMAGE_NAME: ${{ github.repository }}/base
2121

2222
jobs:
23-
build-base-image:
23+
build:
2424
runs-on: ubuntu-latest
2525
outputs:
2626
image-tag: ${{ steps.meta.outputs.tags }}
@@ -94,7 +94,7 @@ jobs:
9494
9595
test:
9696
runs-on: ubuntu-latest
97-
needs: build-base-image
97+
needs: build
9898

9999
steps:
100100
- name: Cancel Previous Runs
@@ -121,11 +121,11 @@ jobs:
121121

122122
- name: Pull base image
123123
run: |
124-
docker pull ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:deps-${{ needs.build-base-image.outputs.deps-hash }}
124+
docker pull ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:deps-${{ needs.build.outputs.deps-hash }}
125125
126126
- name: Build application image
127127
env:
128-
BASE_IMAGE: ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:deps-${{ needs.build-base-image.outputs.deps-hash }}
128+
BASE_IMAGE: ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:deps-${{ needs.build.outputs.deps-hash }}
129129
run: make build-app
130130

131131
- name: Run tests

0 commit comments

Comments
 (0)