Skip to content

Commit cdcd2de

Browse files
tomnatan30copybara-github
authored andcommitted
#sdy add a workflow or building/testing with bazel
PiperOrigin-RevId: 668437067
1 parent 802f21d commit cdcd2de

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
# Copyright 2024 The Shardy Authors. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# ============================================================================
16+
name: Build/Test Bazel
17+
permissions: read-all
18+
on:
19+
pull_request:
20+
env:
21+
# Have `go install` place binaries in $PATH
22+
GOBIN: "/usr/local/bin"
23+
jobs:
24+
build-test-bazel:
25+
runs-on: ubuntu-22.04
26+
defaults:
27+
run:
28+
shell: bash
29+
timeout-minutes: 10
30+
steps:
31+
- name: "Checking out repository"
32+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33+
- name: "Install bazelisk"
34+
run: go install github.com/bazelbuild/bazelisk@24651ab # v1.20.0
35+
- name: "Run bazel build"
36+
run: bazel build -c opt --lockfile_mode=error shardy/...
37+
- name: "Run bazel test"
38+
run: bazel test -c opt --test_output=errors shardy/...

0 commit comments

Comments
 (0)