Skip to content

Commit 97027f2

Browse files
committed
Run docker compose tear down always
1 parent 3a1edc8 commit 97027f2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ jobs:
5959
- name: Test
6060
if: ${{ (matrix.os == 'ubuntu-22.04') && (matrix.dotnet-version == '3.1.x') }}
6161
run: dotnet test --no-build --verbosity normal --configuration Release --filter TestCategory=DB-TESTS
62-
63-
post:
62+
6463
- name: Docker Compose (Tear Down - DB Containers)
65-
if: ${{ (matrix.os == 'ubuntu-22.04') && (matrix.dotnet-version == '3.1.x') }}
64+
if: ${{ (matrix.os == 'ubuntu-22.04') && (matrix.dotnet-version == '3.1.x') && always() }}
6665
uses: ./.github/workflows/docker-compose-teardown-dbs
6766

6867
# Code Coverage
@@ -109,16 +108,16 @@ jobs:
109108

110109
- name: Test
111110
run: dotnet test --no-build --verbosity normal --configuration Release --filter TestCategory=DB-TESTS /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
111+
112+
- name: Docker Compose (Tear Down - DB Containers)
113+
if: always()
114+
uses: ./.github/workflows/docker-compose-teardown-dbs
112115

113116
- name: Upload Coverage To Codecov
114117
uses: codecov/codecov-action@v4
115118
with:
116119
token: ${{ secrets.CODECOV_TOKEN }}
117120

118-
post:
119-
- name: Docker Compose (Tear Down - DB Containers)
120-
uses: ./.github/workflows/docker-compose-teardown-dbs
121-
122121
# Code Quality
123122
Code-Quality:
124123
name: Code Quality (SonarCloud)

0 commit comments

Comments
 (0)