Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test all option #21

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ inputs:
test-negative-tag-filter:
description: Negative tag filter to apply to impacted targets
required: false
force-test-targets:
description: Skip testing for diffs and instead test specified target
required: false

runs:
using: composite
Expand Down Expand Up @@ -157,7 +160,7 @@ runs:
- name: Compute Impacted Targets for Testing
id: compute-impacted-targets-test
run: ${GITHUB_ACTION_PATH}/src/scripts/compute_impacted_targets.sh
if: inputs.test-targets == 'true'
if: inputs.test-targets == 'true' && inputs.force-test-targets == ''
shell: bash
env:
# Use base sha instead of merge instance branch head sha for testing
Expand All @@ -171,7 +174,7 @@ runs:
BAZEL_STARTUP_OPTIONS: ${{ inputs.bazel-startup-options }}

- name: Test Impacted Targets
if: inputs.test-targets == 'true'
if: inputs.test-targets == 'true' && inputs.force-test-targets == ''
id: test-impacted-targets
run: ${GITHUB_ACTION_PATH}/src/scripts/test_impacted_targets.sh
working-directory: ${{ steps.prerequisites.outputs.workspace_path }}
Expand Down
Loading