-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bazel): fix bazel build and add presubmit (#1479)
* chore(ci): add bazel build for proto_library * add missing checkout * add .bazeliskrc * fix rules_proto in WORKSPACE * fix bazel build * add new line to .bazeliskrc * add new line to workflow yaml * update deps * add rc explanation comment
- Loading branch information
Showing
5 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# See https://github.com/bazelbuild/bazelisk | ||
# Should match https://github.com/googleapis/googleapis/blob/master/.bazeliskrc | ||
USE_BAZEL_VERSION=6.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,11 +105,6 @@ jobs: | |
run: go test ./... | ||
- name: Run server coverage | ||
run: go test ./server/... -coverprofile=coverage.txt -covermode=atomic | ||
# Disabled indefinitely. | ||
# - uses: codecov/codecov-action@v1 | ||
# with: | ||
# files: ./coverage.txt | ||
# flags: unittests | ||
probes: | ||
needs: regenerate | ||
runs-on: ubuntu-latest | ||
|
@@ -217,3 +212,16 @@ jobs: | |
repo: context.repo.repo, | ||
labels: ['automerge'] | ||
}) | ||
bazel_build_protos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
- run: bazelisk build //schema/google/showcase/v1beta1:showcase_proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters