Skip to content

Commit 127de73

Browse files
committed
Add standaline_test to prove remote test execution
1 parent e615198 commit 127de73

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
@@ -530,6 +530,16 @@ test_suite(
530530
],
531531
)
532532

533+
swift_cc_test(
534+
name = "standalone_test",
535+
srcs = ["tests/standalone_test.cc"],
536+
includes = ["tests"],
537+
local_defines = ["CSV_IO_NO_THREAD"],
538+
type = UNIT,
539+
deps = ["@gtest//:gtest_main"],
540+
standard=17,
541+
)
542+
533543
platform(
534544
name = "docker_image_platform",
535545
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)