Skip to content

Commit c0424be

Browse files
feat: rename CI/CD job for clarity and enforce Bash shell for test coverage reporting
1 parent 0bf5f12 commit c0424be

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
DOCKER_REPOSITORY: marcofontana17/cce_prototipo
1515

1616
jobs:
17-
test:
17+
build-and-test:
1818
name: Run Tests
1919
runs-on: ${{ matrix.os }}
2020

@@ -72,10 +72,12 @@ jobs:
7272

7373
- name: Run tests with coverage for ${{ matrix.module.name }}
7474
working-directory: ${{ matrix.module.path }}
75+
shell: bash # ← force Bash on Windows, macOS and Linux
7576
run: go test -coverprofile=coverage.out ./...
7677

7778
- name: Display coverage report for ${{ matrix.module.name }}
7879
working-directory: ${{ matrix.module.path }}
80+
shell: bash # ← also force Bash here
7981
run: go tool cover -func=coverage.out
8082

8183
- name: Check test coverage threshold for ${{ matrix.module.name }}
@@ -96,10 +98,10 @@ jobs:
9698
# name: codecov-${{ matrix.module.name }}
9799
# continue-on-error: true
98100

99-
build-and-push:
101+
push-docker-images:
100102
runs-on: ubuntu-latest
101103
name: Build and Push Docker Images
102-
needs: test # This ensures tests must pass before building
104+
needs: build-and-test # This ensures tests must pass before building
103105

104106
strategy:
105107
matrix:

0 commit comments

Comments
 (0)