@@ -32,83 +32,20 @@ jobs:
3232 import %workspace%/.github/workflows/ci.bazelrc
3333 # keep a cache for MODULE.bazel repos
3434 external-cache : true
35- - run : bazelisk build //... && bazelisk test //...
36-
37- e2e-workspace-matrix :
38- strategy :
39- matrix :
40- version :
41- - version : 6.x
42- bazelrc : |
43- import %workspace%/../../.aspect/bazelrc/bazel6.bazelrc
44- - version : 7.x
45- bazelrc : |
46- import %workspace%/../../.aspect/bazelrc/bazel7.bazelrc
47- import %workspace%/../../.aspect/bazelrc/bazel6.bazelrc
48- runs-on : ubuntu-latest
49- steps :
50- - uses : actions/checkout@v4
51- -
uses :
bazel-contrib/[email protected] 52- with :
53- # Avoid downloading Bazel every time.
54- bazelisk-cache : true
55- # Keep a disk-cache
56- disk-cache : true
57- # Share repository cache between workflows.
58- repository-cache : true
59- # enable some flags for CI
60- bazelrc : |
61- import %workspace%/../../.aspect/bazelrc/ci.bazelrc
62- import %workspace%/../../.github/workflows/ci.bazelrc
63- ${{ matrix.version.bazelrc }}
64- - run : cd e2e/bazel-workspace && USE_BAZEL_VERSION=${{ matrix.version.version }} bazelisk build //...
65-
66- e2e-bzlmod-matrix :
67- strategy :
68- matrix :
69- version : [7.x, 8.x]
70- path :
71- - bazel-bzlmod
72- - bazel-bzlmod-lock-file
73-
74- runs-on : ubuntu-latest
75- steps :
76- - uses : actions/checkout@v4
77- -
uses :
bazel-contrib/[email protected] 78- with :
79- # Avoid downloading Bazel every time.
80- bazelisk-cache : true
81- # Keep a disk-cache
82- disk-cache : true
83- # Share repository cache between workflows.
84- repository-cache : true
85- # enable some flags for CI
86- bazelrc : |
87- import %workspace%/../../.aspect/bazelrc/ci.bazelrc
88- import %workspace%/../../.github/workflows/ci.bazelrc
89- - run : cd e2e/${{ matrix.path }} && USE_BAZEL_VERSION=${{ matrix.version }} bazelisk build //...
90-
91- e2e-bzlmod-build-toolchain-matrix :
92- strategy :
93- matrix :
94- version : [7.x, 8.x]
95-
96- runs-on : ubuntu-latest
97- steps :
98- - uses : actions/checkout@v4
99- -
uses :
bazel-contrib/[email protected] 100- with :
101- # Avoid downloading Bazel every time.
102- bazelisk-cache : true
103- # Keep a disk-cache
104- disk-cache : true
105- # Share repository cache between workflows.
106- repository-cache : true
107- # enable some flags for CI
108- bazelrc : |
109- import %workspace%/../../.aspect/bazelrc/ci.bazelrc
110- import %workspace%/../../.github/workflows/ci.bazelrc
111- - run : cd e2e/bazel-bzlmod-toolchain-from-source && USE_BAZEL_VERSION=${{ matrix.version }} bazelisk build //...
35+ - id : build
36+ run : bazelisk build //...
37+ - id : unit-tests
38+ run : bazelisk test //...
39+ - id : e2e that should pass
40+ run : bazelisk test e2e
41+ - id : e2e that are allowed to fail
42+ run : |
43+ bazel test //e2e:circular-deps || status=$?
44+ if [ ${status} -ne 0 ]; then
45+ echo "::warning::Optional job failed."
46+ echo "optional_fail=true" >> "${GITHUB_OUTPUT}"
47+ echo "optional_fail_status=${status}" >> "${GITHUB_OUTPUT}"
48+ fi
11249
11350 e2e-repo-yaml :
11451 runs-on : ubuntu-latest
@@ -127,60 +64,7 @@ jobs:
12764 import %workspace%/.aspect/bazelrc/ci.bazelrc
12865 import %workspace%/.github/workflows/ci.bazelrc
12966 - run : |
130- export USE_BAZEL_VERSION=7 .x
67+ export USE_BAZEL_VERSION=8 .x
13168 bazelisk run //cmd -- init --fc 41 --output $(pwd)/repo.yaml
13269 bazelisk run //cmd -- fetch --repofile $(pwd)/repo.yaml
13370 bazelisk run //cmd -- resolve --repofile $(pwd)/repo.yaml bash
134-
135- e2e-bzlmod-lock-file-from-args :
136- runs-on : ubuntu-latest
137- steps :
138- - uses : actions/checkout@v4
139- -
uses :
bazel-contrib/[email protected] 140- with :
141- # Avoid downloading Bazel every time.
142- bazelisk-cache : true
143- # Keep a disk-cache
144- disk-cache : true
145- # Share repository cache between workflows.
146- repository-cache : true
147- # enable some flags for CI
148- bazelrc : |
149- import %workspace%/../../.aspect/bazelrc/ci.bazelrc
150- import %workspace%/../../.github/workflows/ci.bazelrc
151- - run : |
152- export USE_BAZEL_VERSION=8.x
153- cd e2e/bazel-bzlmod-lock-file-from-args && bazelisk run :bazeldnf -- fetch && bazelisk run @bazeldnf_rpms//:update-lock-file && bazelisk build ...
154-
155- e2e-bzlmod-toolchain-circular-dependencies :
156- runs-on : ubuntu-latest
157- steps :
158- - uses : actions/checkout@v4
159- -
uses :
bazel-contrib/[email protected] 160- with :
161- # Avoid downloading Bazel every time.
162- bazelisk-cache : true
163- # Keep a disk-cache
164- disk-cache : true
165- # Share repository cache between workflows.
166- repository-cache : true
167- # enable some flags for CI
168- bazelrc : |
169- import %workspace%/../../.aspect/bazelrc/ci.bazelrc
170- import %workspace%/../../.github/workflows/ci.bazelrc
171- - id : prepare
172- run : |
173- export USE_BAZEL_VERSION=8.x
174- cd e2e/bzlmod-toolchain-circular-dependencies
175- bazelisk run @bazeldnf_rpms//:fetch-repo
176- bazelisk run @bazeldnf_rpms//:update-lock-file
177- - id : test
178- run : |
179- export USE_BAZEL_VERSION=8.x
180- cd e2e/bzlmod-toolchain-circular-dependencies
181- bazelisk build //... || status=$?
182- if [ ${status} -ne 0 ]; then
183- echo "::warning::Optional job failed."
184- echo "optional_fail=true" >> "${GITHUB_OUTPUT}"
185- echo "optional_fail_status=${status}" >> "${GITHUB_OUTPUT}"
186- fi
0 commit comments