Skip to content

Commit 977c28a

Browse files
committed
feat: run windows tests in Testcontainers Cloud
1 parent 1c36f14 commit 977c28a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci-test-go.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,18 @@ jobs:
9292
working-directory: ./${{ inputs.project-directory }}
9393
run: make tools-tidy
9494

95+
- name: Setup Testcontainers Cloud Client
96+
# Use Testcontainers Cloud for Windows and MacOS, but only on for merge commits on main
97+
if: ${{ inputs.run-tests && (inputs.platform == 'windows-latest' || inputs.platform == 'macos-latest') }}
98+
uses: atomicjar/testcontainers-cloud-setup-action@v1
99+
with:
100+
token: ${{ secrets.TC_CLOUD_TOKEN }}
101+
95102
- name: ensure compilation
96103
working-directory: ./${{ inputs.project-directory }}
97104
run: go build
98105

99106
- name: go test
100-
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
101-
# many (maybe, all?) images used can only be build on Linux, they don't have Windows in their manifest, and
102-
# we can't put Windows Server in "Linux Mode" in Github actions
103-
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
104107
if: ${{ inputs.run-tests }}
105108
working-directory: ./${{ inputs.project-directory }}
106109
timeout-minutes: 30

0 commit comments

Comments
 (0)