Skip to content

Commit 829dac0

Browse files
committed
ci: stabilize testcontainers step for scheduled workflow
1 parent 0cf526a commit 829dac0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,26 @@ jobs:
8181
run: |
8282
localstack logs
8383
84-
- name: Stop LocalStack
84+
- name: Ensure Docker is available for Testcontainers
8585
run: |
86-
localstack stop
86+
sudo systemctl start docker || true
87+
docker version
88+
docker info
8789
8890
- name: Run Testcontainers tests
8991
env:
9092
AWS_ACCESS_KEY_ID: test
9193
AWS_SECRET_ACCESS_KEY: test
9294
AWS_REGION: us-east-1
95+
DOCKER_HOST: unix:///var/run/docker.sock
9396
run: |
9497
mvn test -Dtest=dev.ancaghenade.shipmentlistdemo.integrationtests.ShipmentServiceIntegrationTest
9598
99+
- name: Stop LocalStack
100+
if: always()
101+
run: |
102+
localstack stop
103+
96104
- name: Send a Slack notification
97105
if: failure() || github.event_name != 'pull_request'
98106
uses: ravsamhq/notify-slack-action@v2

0 commit comments

Comments
 (0)