Skip to content

Commit 1add1e1

Browse files
ci: check that the example using a bazel module builds
1 parent fb07a24 commit 1add1e1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

+19
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ jobs:
6464
- run: bazelisk build --lockfile_mode=error //...
6565
- run: bazelisk test --lockfile_mode=error //...
6666

67+
bazel_module_example:
68+
name: bazel module example test
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: actions/cache@v4
73+
with:
74+
path: |
75+
~/.cache/bazel
76+
~/.cache/bazelisk
77+
key: ${{ runner.os }}-bazel-cache
78+
- run: |
79+
# We leave the lockfile off for this. lockfile_mode=off is also
80+
# set in the .bazelrc in the examples/bazel/ directory.
81+
# The example directly references the local jsonnet_go module from
82+
# its parent directory, so the hash will change on almost every
83+
# commit anyway.
84+
cd examples/bazel && bazelisk build --lockfile_mode=off //...
85+
6786
all:
6887
name: Check all
6988
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)