File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ bcr_test_module:
3
3
matrix :
4
4
bazel : ["6.x", "7.x"]
5
5
# TODO(#97): add windows
6
- platform : ["debian10", "ubuntu2004"]
6
+ platform : ["debian10", "ubuntu2004", "windows" ]
7
7
tasks :
8
8
test_linux :
9
9
name : " Run test module"
Original file line number Diff line number Diff line change 43
43
run : echo "os=macos-13" >> $GITHUB_OUTPUT
44
44
# Don't run MacOS if there is no TestContainers API token which is the case on forks. We need it for container tests.
45
45
if : ${{ env.TC_CLOUD_TOKEN != '' }}
46
+ - id : windows
47
+ run : echo "os=windows-latest" >> $GITHUB_OUTPUT
48
+ # Only run on main branch (not PRs) to minimize windows minutes (billed at 2X)
49
+ # https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes
50
+ if : (github.ref == 'refs/heads/main' || contains(github.head_ref, 'windows'))
46
51
outputs :
47
- # Will look like ["ubuntu-latest", "macos-13 "]
52
+ # Will look like ["ubuntu-latest", "macos-latest", "windows-latest "]
48
53
os : ${{ toJSON(steps.*.outputs.os) }}
49
54
50
55
test :
77
82
# e2e/assertion is bzlmod only but it has test for both cases.
78
83
- folder : e2e/assertion
79
84
bzlmodEnabled : false
85
+ # Windows is mostly broken, so we allow-list below instead.
86
+ - os : windows-latest
87
+ bzlmodEnabled : false
80
88
# TODO: fix
81
89
- folder : e2e/wasm
82
90
bzlmodEnabled : true
91
+ include :
92
+ # This is approx. what the BCR presubmit will run
93
+ - os : windows-latest
94
+ bzlmodEnabled : true
95
+ folder : e2e/smoke
96
+
83
97
# Steps represent a sequence of tasks that will be executed as part of the job
84
98
steps :
85
99
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -162,7 +176,7 @@ jobs:
162
176
XDG_CACHE_HOME : ~/.cache/bazel-repo
163
177
run : |
164
178
bazel \
165
- --bazelrc=$GITHUB_WORKSPACE /.github/workflows/ci.bazelrc \
179
+ --bazelrc=${{ github.workspace }} /.github/workflows/ci.bazelrc \
166
180
--bazelrc=.bazelrc \
167
181
test //... \
168
182
${{ steps.set_bzlmod_flag.outputs.bzlmod_flag }} \
You can’t perform that action at this time.
0 commit comments