-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: run all integration tests in CI (#323)
- Migrated the CI workflow generation code from `rules_swift_package_manager`. - Updated all packages with integration tests to follow a naming convention: `all_integration_tests`, `smoke_integration_tests`, `all_test_params`. - Update the root `BUILD.bazel` to list the packages with integration tests and generate the appropriate `test_suite` and `ci_workflow` declarations. - Generate the CI workflow. - Update CI workflow to be cancelable. Closes #320.
- Loading branch information
Showing
60 changed files
with
1,853 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Execute Test | ||
|
||
inputs: | ||
test_target: | ||
description: The test target to execute. | ||
required: true | ||
bzlmod_enabled: | ||
description: Boolean value that specifies whether bzlmod should be enabled. | ||
required: true | ||
github_token: | ||
description: The Github token to authenticate gh CLI. | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Execute Test | ||
shell: bash | ||
env: | ||
TEST_TARGET: ${{ inputs.test_target }} | ||
BZLMOD_ENABLED: ${{ inputs.bzlmod_enabled }} | ||
# The tests make use of Github-specific functionality (e.g. gh). | ||
GITHUB_TOKEN: ${{ inputs.github_token }} | ||
run: | | ||
if [[ "${BZLMOD_ENABLED}" == "false" ]] && [[ "${TEST_TARGET}" =~ ^@@ ]]; then | ||
# Strip the first @ from test target | ||
TEST_TARGET="${TEST_TARGET#@}" | ||
fi | ||
bazelisk test "${TEST_TARGET}" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
name: Tidy and Test | ||
# inputs: [] | ||
|
||
inputs: | ||
github_token: | ||
description: The Github token to authenticate gh CLI. | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Ensure everything is tidy | ||
shell: bash | ||
env: | ||
# The tests make use of Github-specific functionality (e.g. gh). | ||
GITHUB_TOKEN: ${{ inputs.github_token }} | ||
run: | | ||
bazelisk run //:tidy_check | ||
- name: Execute Tests | ||
shell: bash | ||
env: | ||
# The tests make use of Github-specific functionality (e.g. gh). | ||
GITHUB_TOKEN: ${{ inputs.github_token }} | ||
run: | | ||
bazelisk test //... |
Oops, something went wrong.