Skip to content

Commit a4b0bb4

Browse files
committed
Try warming up the bazel cache before testing
1 parent 88ddee7 commit a4b0bb4

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
bazelisk-cache: true
5050
disk-cache: false
5151
repository-cache: false
52+
module-root: ${{ github.workspace }}/test/bazel_workspace
53+
54+
- name: Build Bazel workspace to assure it is working & warm up cache
55+
run: bazel build //...
56+
working-directory: ${{ github.workspace }}/test/bazel_workspace/
5257

5358
- run: xvfb-run -a npm test
5459
if: runner.os == 'Linux'

test/bazel_workspace/.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.3.1

test/bazel_workspace/pkg1/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ py_binary(
55
)
66
filegroup(
77
name="foo",
8-
srcs=["foobar.txt"],
8+
srcs=["subfolder/foo.txt"],
99
)

0 commit comments

Comments
 (0)