Skip to content

Commit 2390c69

Browse files
Rachel Goldfingercopybara-github
authored andcommitted
Move bazel tests from upb to bazel
PiperOrigin-RevId: 862308886
1 parent 0a3f90b commit 2390c69

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/test_bazel.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,21 @@ jobs:
8888
bash: >
8989
cd examples/example_without_cc_toolchain;
9090
bazel build //... $BAZEL_FLAGS ${{ matrix.toolchain_resolution }};
91+
92+
bazel-tests:
93+
strategy:
94+
fail-fast: false # Don't cancel all jobs if one fails.
95+
name: Bazel Tests
96+
runs-on: ubuntu-latest
97+
steps:
98+
- name: Checkout pending changes
99+
uses: protocolbuffers/protobuf-ci/checkout@v5
100+
with:
101+
ref: ${{ inputs.safe-checkout }}
102+
- name: Run tests
103+
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
104+
with:
105+
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-e78301df86b3e4c46ec9ac4d98be00e19305d8f3
106+
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
107+
bazel-cache: "bazel-tests"
108+
bazel: test //bazel/...

.github/workflows/test_upb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
image: ${{ matrix.config.image || 'us-docker.pkg.dev/protobuf-build/containers/test/linux/sanitize:8.0.1-12e21b8dda91028bc14212a3ab582c7c4d149fac' }}
5555
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
5656
bazel-cache: upb-bazel
57-
bazel: test //bazel/... //benchmarks/... //lua/... //python/... //upb/... //upb_generator/... ${{ matrix.config.flags }}
57+
bazel: test //benchmarks/... //lua/... //python/... //upb/... //upb_generator/... ${{ matrix.config.flags }}
5858
exclude-targets: ${{ matrix.config.exclude-targets }}
5959

6060
windows:

0 commit comments

Comments
 (0)