mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-22 16:00:05 -05:00
ci: execute integration tests with Bazel, where possible
Co-authored-by: malt3 <malt3@users.noreply.github.com>
This commit is contained in:
parent
6cfc80454a
commit
b0702cd033
7
.bazelrc
7
.bazelrc
@ -27,6 +27,13 @@ build --flag_alias=container_prefix=//bazel/settings:container_prefix
|
|||||||
# set cli edition flag alias
|
# set cli edition flag alias
|
||||||
build --flag_alias=cli_edition=//bazel/settings:cli_edition
|
build --flag_alias=cli_edition=//bazel/settings:cli_edition
|
||||||
|
|
||||||
|
# disable integration tests by default
|
||||||
|
test --test_tag_filters=-integration
|
||||||
|
# enable all tests (including integration)
|
||||||
|
test:integration --test_tag_filters= --@io_bazel_rules_go//go/config:tags=integration
|
||||||
|
# enable only integration tests
|
||||||
|
test:integration-only --test_tag_filters=+integration --@io_bazel_rules_go//go/config:tags=integration
|
||||||
|
|
||||||
# bazel configs to explicitly target a platform
|
# bazel configs to explicitly target a platform
|
||||||
common:host --platforms @local_config_platform//:host
|
common:host --platforms @local_config_platform//:host
|
||||||
common:linux_amd64 --platforms @zig_sdk//libc_aware/platform:linux_amd64_gnu.2.23
|
common:linux_amd64 --platforms @zig_sdk//libc_aware/platform:linux_amd64_gnu.2.23
|
||||||
|
13
.github/workflows/test-integration.yml
vendored
13
.github/workflows/test-integration.yml
vendored
@ -42,6 +42,17 @@ jobs:
|
|||||||
run: mkdir build && cd build && cmake ..
|
run: mkdir build && cd build && cmake ..
|
||||||
|
|
||||||
# Runs all test targets starting with "integration-"
|
# Runs all test targets starting with "integration-"
|
||||||
- name: Integration Tests
|
- name: CMake-based Integration Tests
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: ctest -R integration-
|
run: ctest -R integration-
|
||||||
|
|
||||||
|
- name: Setup bazel
|
||||||
|
uses: ./.github/actions/setup_bazel_nix
|
||||||
|
with:
|
||||||
|
useCache: "true"
|
||||||
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
||||||
|
|
||||||
|
- name: Integration Tests
|
||||||
|
env:
|
||||||
|
TMPDIR: ${{ runner.temp }}
|
||||||
|
run: bazel test //... --test_output=errors --config=nostamp --config=integration-only --remote_download_minimal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user