Skip to content

Commit 6ef052a

Browse files
authored
Add workflow to test Docker Desktop for Windows (#9076)
1 parent 4b3d08e commit 6ef052a

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/ci-windows.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI - Windows
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '.github/ISSUE_TEMPLATE/*.yaml'
7+
- '.github/CODEOWNERS'
8+
- '.github/pull_request_template.md'
9+
- 'docs/**/*.css'
10+
- 'docs/**/*.html'
11+
- 'docs/**/*.ico'
12+
- 'docs/**/*.md'
13+
- 'docs/**/*.png'
14+
- 'docs/**/*.svg'
15+
- 'mkdocs.yml'
16+
- 'README.md'
17+
- 'RELEASING.md'
18+
- '.sdkmanrc'
19+
push:
20+
branches: [ main ]
21+
paths-ignore:
22+
- '.github/ISSUE_TEMPLATE/*.yaml'
23+
- '.github/CODEOWNERS'
24+
- '.github/pull_request_template.md'
25+
- 'docs/**/*.css'
26+
- 'docs/**/*.html'
27+
- 'docs/**/*.ico'
28+
- 'docs/**/*.md'
29+
- 'docs/**/*.png'
30+
- 'docs/**/*.svg'
31+
- 'mkdocs.yml'
32+
- 'README.md'
33+
- 'RELEASING.md'
34+
- '.sdkmanrc'
35+
36+
concurrency:
37+
group: "${{ github.workflow }}-${{ github.head_ref || github.sha }}"
38+
cancel-in-progress: true
39+
40+
permissions:
41+
contents: read
42+
43+
jobs:
44+
core:
45+
runs-on: self-hosted
46+
permissions:
47+
checks: write
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Build with Gradle
51+
run: ./gradlew.bat cleanTest testcontainers:test --no-daemon --continue --scan --no-build-cache
52+
- uses: ./.github/actions/setup-junit-report

core/src/test/java/org/testcontainers/containers/DockerComposeOverridesTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public void setUp() {
6565
.assumeThat(CommandLine.executableExists(DockerComposeContainer.COMPOSE_EXECUTABLE))
6666
.as("docker-compose executable exists")
6767
.isTrue();
68+
Assumptions
69+
.assumeThat(CommandLine.runShellCommand("docker-compose", "--version"))
70+
.doesNotStartWith("Docker Compose version v2");
6871
}
6972
}
7073

0 commit comments

Comments
 (0)