bcr_test_module:
  module_path: "example/bzlmod"
  matrix:
    platform: ["debian10", "macos", "ubuntu2004"]
    bazel: [7.x, 8.x, rolling, last_green]
  tasks:
    run_tests:
      name: "Build and test the example module"
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      shell_commands:
        # Generate the BUILD files for the test module using Gazelle
        - bazel run //:gazelle
      build_targets:
        - //...
      test_targets:
        - //...
