Skip to content

Commit

Permalink
test workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dup05 committed Mar 8, 2024
1 parent 23a3357 commit e680cea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/performance-testing-main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Load testing

on:
# push:
# branches:
# - pipeline_performance
pull_request:
types: [ opened, reopened, synchronize ]
branches:
Expand All @@ -13,7 +10,6 @@ on:
inputs:
test_config_json:
description: test configs
default: "default"
type: String


Expand Down Expand Up @@ -56,7 +52,11 @@ jobs:
id: set-matrix
run: |
matrix=$(jq -c . < .github/workflows/configs/tests_config.json)
echo "matrix={\"include\":$(echo $matrix)}" >> $GITHUB_OUTPUT
if [[ "${{github.event.inputs.test_config_json}}" != "" ]]; then
matrix=$(echo '${{github.event.inputs.test_config_json}}' | jq .)
fi
echo "matrix={\"include\":$(echo $matrix)}" >> $GITHUB_OUTPUT
echo $matrix
run-test:
needs:
Expand All @@ -79,7 +79,7 @@ jobs:
echo "dataset=dataset_${{needs.generate-uuid.outputs.uuid}}_${{matrix.name}}" >> $GITHUB_OUTPUT
echo "Test details: ${{matrix.name}}"
echo "job_name=load-test-${{needs.generate-uuid.outputs.uuid}}-test-$test_name"
echo "dataset=dataset_${{needs.generate-uuid.outputs.uuid}}_${{matrix.name}}"
echo "dataset=dataset_${{needs.generate-uuid.outputs.uuid}}_${{matrix.name}}"
input_gcs_bucket=$(echo "${{ matrix.gcs_file_path }}" | awk -F "/" '{print $3}')
echo "input_gcs_bucket=$input_gcs_bucket" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e680cea

Please sign in to comment.