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