Skip to content

Commit 3a1edc8

Browse files
committed
Run docker compose tear down always as post steps
1 parent d44f91c commit 3a1edc8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
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
6262

63+
post:
6364
- name: Docker Compose (Tear Down - DB Containers)
6465
if: ${{ (matrix.os == 'ubuntu-22.04') && (matrix.dotnet-version == '3.1.x') }}
6566
uses: ./.github/workflows/docker-compose-teardown-dbs
@@ -109,14 +110,15 @@ jobs:
109110
- name: Test
110111
run: dotnet test --no-build --verbosity normal --configuration Release --filter TestCategory=DB-TESTS /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
111112

112-
- name: Docker Compose (Tear Down - DB Containers)
113-
uses: ./.github/workflows/docker-compose-teardown-dbs
114-
115113
- name: Upload Coverage To Codecov
116114
uses: codecov/codecov-action@v4
117115
with:
118116
token: ${{ secrets.CODECOV_TOKEN }}
119117

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

.github/workflows/docker-compose-teardown-dbs/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ runs:
44
using: 'composite'
55

66
steps:
7-
post:
87
- name: Docker Compose (Tear Down - DB Containers)
9-
if: always()
108
shell: bash
119
run: docker compose -f docker-compose.yml down

0 commit comments

Comments
 (0)