Skip to content

Commit 6e0b507

Browse files
committed
Add standaline_test to prove remote test execution
1 parent c6cbe81 commit 6e0b507

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ jobs:
2929
username: ${{ secrets.GH_NAME }}
3030
password: ${{ secrets.GH_TOKEN }}
3131

32-
- name: Build and test
32+
- name: Build
3333
run: bazel build --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_TEST }} --remote_executor=grpcs://remote.buildbuddy.io --config=rbe //...
34+
35+
- name: Test
36+
run: bazel test --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_TEST }} --remote_executor=grpcs://remote.buildbuddy.io --config=rbe //:standalone_test

BUILD.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,16 @@ test_suite(
473473
],
474474
)
475475

476+
swift_cc_test(
477+
name = "standalone_test",
478+
srcs = ["tests/standalone_test.cc"],
479+
includes = ["tests"],
480+
local_defines = ["CSV_IO_NO_THREAD"],
481+
type = UNIT,
482+
deps = ["@gtest//:gtest_main"],
483+
standard=17,
484+
)
485+
476486
platform(
477487
name = "docker_image_platform",
478488
constraint_values = [

tests/standalone_test.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <gtest/gtest.h>
2+
3+
TEST(StandaloneTest, SampleTest) {
4+
EXPECT_EQ(1 + 1, 2);
5+
}

0 commit comments

Comments
 (0)