Skip to content

Commit

Permalink
feat: expand integration test to all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenandpork committed Dec 11, 2024
1 parent 65b7b1f commit 8208963
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,7 @@ jobs:
-
run: bazel test //... --test_output=errors --test_summary=detailed
-
name: Integration Tests (ie Examples)
name: Integration Tests (ie Proof Examples)
run: bazel test //examples:all_integration_tests --test_output=errors --test_summary=detailed
-
name: Build / Test examples to ensure functionality
run: |
for d in $(find examples -name WORKSPACE -o -name MODULE.bazel -exec dirname {} \; ); do
echo "::group::example: ${d}"
(cd ${d} && echo "::group::build: ${d}" && bazel build //... );
#(cd ${d} && test 1 -le $(bazel query 'kind("test", "//...")' 2> /dev/null | wc -l ) && echo "::group::test: ${d}" && bazel test //...);
echo "::endgroup::"
done
-
run: bazel shutdown
9 changes: 8 additions & 1 deletion examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_fil
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
load("@rules_synology//:defs.bzl", "images", "info_file", "maintainer", "protocol_file", "resource_config", "service_config")

examples = ["cross-helloworld"]
examples = [
"cross-helloworld",
"cross-helloworld-no-go",
"example-docker-project",
"example-kernelmod-spk",
# "example-prebuilt-binary-spk",
"example-server",
]

# Declare a test runner to drive the integration tests.
default_test_runner(
Expand Down

0 comments on commit 8208963

Please sign in to comment.