Skip to content

Commit 40159b8

Browse files
mbruzda-splunkmkolasinski-splunkartemrys
authored
fix: merge develop into main (#452)
### Description Release v5.2.2 - adds label to run GS Scorecard job on demand - adjustments to dynamic python version control - fail the workflow is dev_deps doesnt exist - install dependencies in separate venv for unit tests ### Checklist - [ ] `README.md` has been updated or is not required - [ ] push trigger tests - [ ] manual release test - [ ] automated releases test - [ ] pull request trigger tests - [ ] schedule trigger tests - [ ] workflow errors/warnings reviewed and addressed ### Testing done https://github.com/splunk/splunk-add-on-for-google-workspace/actions/runs/19929680065/job/57138613216?pr=657 --------- Co-authored-by: mkolasinski-splunk <105011638+mkolasinski-splunk@users.noreply.github.com> Co-authored-by: Marcin Kolasinski <mkolasinski@splunk.com> Co-authored-by: Artem Rys <rysartem@gmail.com>
1 parent fc29223 commit 40159b8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ jobs:
191191
execute-upgrade: ${{ steps.determine-test-execution-flags.outputs.execute_upgrade }}
192192
exit-first: ${{ steps.determine-test-execution-flags.outputs.exit-first }}
193193
execute-unit: ${{ steps.determine-test-execution-flags.outputs.execute_unit }}
194+
execute-gs-scorecard: ${{ steps.determine-test-execution-flags.outputs.execute_gs_scorecard }}
194195
s3_bucket_k8s: ${{ steps.k8s-environment.outputs.s3_bucket }}
195196
argo_server_domain_k8s: ${{ steps.k8s-environment.outputs.argo_server_domain }}
196197
argo_token_secret_id_k8s: ${{ steps.k8s-environment.outputs.argo_token_secret_id }}
@@ -222,7 +223,7 @@ jobs:
222223
run: |
223224
set +e
224225
declare -A EXECUTION_FLAGS
225-
TESTSET=("execute_unit" "execute_knowledge" "execute_spl2" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_upgrade")
226+
TESTSET=("execute_unit" "execute_knowledge" "execute_spl2" "execute_ui" "execute_modinput_functional" "execute_ucc_modinput_functional" "execute_scripted_inputs" "execute_upgrade" "execute_gs_scorecard")
226227
for test_type in "${TESTSET[@]}"; do
227228
EXECUTION_FLAGS["$test_type"]="false"
228229
done
@@ -245,6 +246,10 @@ jobs:
245246
echo "spl2::true"
246247
fi
247248
249+
# GS Scorecard is always available
250+
TESTS_TO_CONSIDER_FOR_EXECUTION+=("execute_gs_scorecard")
251+
echo "gs_scorecard::true"
252+
248253
found_unit_test=false
249254
for test_name in "${TESTS_TO_CONSIDER_FOR_EXECUTION[@]}"; do
250255
if [[ "$test_name" == "execute_unit" ]]; then
@@ -824,8 +829,10 @@ jobs:
824829

825830
run-gs-scorecard:
826831
name: quality-gs-scorecard
827-
needs: build
828-
if: ${{ !cancelled() && needs.build.result == 'success' && (github.ref_name == 'main' && github.event_name == 'push') }}
832+
needs:
833+
- build
834+
- setup-workflow
835+
if: ${{ !cancelled() && needs.build.result == 'success' && needs.setup-workflow.outputs.execute-gs-scorecard == 'true' }}
829836
runs-on: ubuntu-latest
830837
steps:
831838
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)