blob: 387dffc779b104b3935927b98cfa59f771a1a6a3 [file] [log] [blame]
---
matrix:
platform:
- ubuntu1804
- ubuntu2004
- macos
.noenable_bzlmod_flags: &noenable_bzlmod_flags
? "--noenable_bzlmod"
.windows_flags: &windows_flags
# Workaround for https://github.com/bazelbuild/continuous-integration/issues/1012
? "--noexperimental_repository_cache_hardlinks"
.common_task_config: &common_task_config
build_targets:
- "//..."
test_targets:
- "//..."
.noenable_bzlmod_task_config: &noenable_bzlmod_task_config
build_flags: *noenable_bzlmod_flags
build_targets:
# Note that //distro/... cannot be loaded in legacy WORKSPACE mode due to repo name change
- "//:*"
- "//src/..."
- "//stardoc/..."
- "//test/..."
test_flags: *noenable_bzlmod_flags
test_targets:
# Most tests will not pass in legacy WORKSPACE mode due to repo name change
- "//test:multiple_files_noenable_bzlmod_test"
- "//test:same_level_file_noenable_bzlmod_test"
- "//test:table_of_contents_noenable_bzlmod_test"
- "//test:local_repository_test"
.windows_task_config: &windows_task_config
<<: *common_task_config
build_flags: *windows_flags
test_flags: *windows_flags
tasks:
build_and_test:
<<: *common_task_config
name: Build and test
platform: ${{ platform }}
build_and_test_windows:
<<: *windows_task_config
name: Build and test - Windows
platform: windows
noenable_bzlmod:
<<: *noenable_bzlmod_task_config
name: Build and test - legacy WORKSPACE setup
platform: ${{ platform }}
build_and_test_last_green:
<<: *common_task_config
name: Build and test - Bazel last green
platform: ${{ platform }}
bazel: last_green
build_and_test_last_green_windows:
<<: *windows_task_config
name: Build and test - Bazel last green - Windows
platform: windows
bazel: last_green
bzlmod_usage:
<<: *common_task_config
name: Stardoc Bzlmod module usage test
platform: ${{ platform }}
working_directory: test/bzlmod
bzlmod_usage_windows:
<<: *windows_task_config
name: Stardoc Bzlmod module usage test - Windows
platform: windows
working_directory: test/bzlmod
bazel_7_2_tests:
name: Stardoc golden tests requiring Bazel 7.2
platform: ubuntu2004
bazel: 7.2.0
test_targets:
- "//test:proto_format_test"
- "//test:macro_kwargs_legacy_test"
skip_in_bazel_downstream_pipeline: Manual tests requiring an older Bazel version
bazel_8_tests:
name: Stardoc golden tests requiring Bazel HEAD
platform: ubuntu2004
bazel: last_green
test_targets:
- "//test:macro_kwargs_test"
buildifier: latest