You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by aa...@apache.org on 2022/08/03 05:25:22 UTC
[rocketmq-clients] 01/01: Add remote cache
This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch java_dev
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
commit f684d8254db7edbd1023d7c74de179e872c0a4be
Author: Aaron Ai <aa...@apache.org>
AuthorDate: Wed Aug 3 13:24:20 2022 +0800
Add remote cache
---
.github/workflows/cpp_coverage.yml | 4 ++--
cpp/source/base/tests/AssignmentTest.cpp | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/cpp_coverage.yml b/.github/workflows/cpp_coverage.yml
index 7dab30f..3d1aeb7 100644
--- a/.github/workflows/cpp_coverage.yml
+++ b/.github/workflows/cpp_coverage.yml
@@ -4,7 +4,7 @@ on:
types: [opened, reopened, synchronize]
push:
branches:
- - master
+ - java_dev
# mainly refer to: https://github.com/merkrafter/Merkompiler/blob/development/.github/workflows/quality_assurance.yml
jobs:
calculate-coverage:
@@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- name: Generate coverage report
working-directory: ./cpp
- run: bazel coverage //...
+ run: bazel coverage --config=remote --remote_header=x-buildbuddy-api-key=${{ secrets.BUILD_BUDDY_API_KEY }} //...
- name: Upload to Codecov
uses: codecov/codecov-action@v2.0.2
with:
diff --git a/cpp/source/base/tests/AssignmentTest.cpp b/cpp/source/base/tests/AssignmentTest.cpp
index dcb3e58..dc3e67d 100644
--- a/cpp/source/base/tests/AssignmentTest.cpp
+++ b/cpp/source/base/tests/AssignmentTest.cpp
@@ -14,11 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
-#include "gtest/gtest.h"
+
#include <algorithm>
-#include "rocketmq/RocketMQ.h"
+
#include "Protocol.h"
+#include "gtest/gtest.h"
+#include "rocketmq/RocketMQ.h"
ROCKETMQ_NAMESPACE_BEGIN