github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/.bcr/presubmit.yml (about)

     1  bcr_test_module:
     2    module_path: tests/bcr/go_mod
     3    matrix:
     4      platform:
     5        - debian10
     6        - ubuntu2004
     7        - macos
     8        - windows
     9      bazel: [6.x, 7.x]
    10    tasks:
    11      run_test_module:
    12        name: Run test module
    13        platform: ${{ platform }}
    14        bazel: ${{ bazel }}
    15        shell_commands:
    16        # Regenerate the BUILD files for the test module using Gazelle.
    17        - rm pkg/BUILD.bazel proto/BUILD.bazel
    18        - bazel run //:gazelle -- update pkg proto
    19        - bazel run //:gazelle -- pkg proto
    20        build_targets:
    21        - //...
    22        - //:gazelle
    23        test_targets:
    24        # Specify these targets explicitly to verify that Gazelle generates them correctly.
    25        - "//pkg:pkg_test"
    26        - "//proto:proto_test"
    27        - "//..."
    28        - "@test_dep//..."