We're using testcontainers-java heavily in our spring-boot-admin project. Since we also want to be able to run our Maven build also on Windows, we added a windows-latest
environment to our GitHub Actions Pipeline using a Matrix strategy build (as supposed in this answer) like this:
name: build
on:
push:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: |
mvn -B install --no-transfer-progress
Now our Testcontainers JUnit testcase failes with (see full build log):
[INFO] Running de.codecentric.boot.admin.server.eventstore.HazelcastEventStoreWithClientConfigTest
Error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.877 s <<< FAILURE! - in de.codecentric.boot.admin.server.eventstore.HazelcastEventStoreWithClientConfigTest
Error: de.codecentric.boot.admin.server.eventstore.HazelcastEventStoreWithClientConfigTest Time elapsed: 0.877 s <<< ERROR!
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
So any idea what we can do to fix that?