You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/09/28 04:41:44 UTC
[rocketmq] branch develop updated: [ISSUE #5201]Use pull request to replace pull request target (#5202)
This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new b403e6eee [ISSUE #5201]Use pull request to replace pull request target (#5202)
b403e6eee is described below
commit b403e6eee23c88a0a1370bddbc0c72c4644495ae
Author: Zhanhui Li <li...@apache.org>
AuthorDate: Wed Sep 28 12:41:25 2022 +0800
[ISSUE #5201]Use pull request to replace pull request target (#5202)
* Use pull request to replace pull request target
* Make Bazel Pipeline required
---
.asf.yaml | 1 +
.bazelrc | 4 ++++
.github/workflows/bazel.yml | 6 +++---
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index e1d9b7be4..cc9cc336d 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -42,3 +42,4 @@ github:
- misspell-check
- check-license
- maven-compile (ubuntu-18.04, JDK-8)
+ - bazel-compile (ubuntu-20.04)
diff --git a/.bazelrc b/.bazelrc
index 8409b108f..c8509cb48 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -71,3 +71,7 @@ build:remote --incompatible_strict_action_env=true
# Set a higher timeout value, just in case.
build:remote --remote_timeout=3600
+
+# Use a pre-configured account, such that we may have pull-request replacing pull-request-target
+build:remote --remote_header=x-buildbuddy-api-key=FD819nUEY7WjvqmoufsU
+test:remote --remote_header=x-buildbuddy-api-key=FD819nUEY7WjvqmoufsU
\ No newline at end of file
diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml
index b91a53b9d..e7a141995 100644
--- a/.github/workflows/bazel.yml
+++ b/.github/workflows/bazel.yml
@@ -1,6 +1,6 @@
name: Build and Run Tests by Bazel
on:
- pull_request_target:
+ pull_request:
types: [opened, reopened, synchronize]
push:
branches:
@@ -17,6 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: bazel build --config=remote --remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
+ run: bazel build --config=remote //...
- name: Run Tests
- run: bazel test --config=remote --remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
\ No newline at end of file
+ run: bazel test --config=remote --nocache_test_results //...
\ No newline at end of file