Skip to content

Commit 998d399

Browse files
authored
ci: replace faker with hardcoded source (#42)
1 parent 6e71dc0 commit 998d399

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/connector-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
fail-fast: false
6969
matrix:
7070
include:
71-
- connector: source-faker
71+
- connector: source-hardcoded-records
7272
cdk_extra: n/a
7373
- connector: source-shopify
7474
cdk_extra: n/a
@@ -141,14 +141,16 @@ jobs:
141141
json_output_file=$(find airbyte/airbyte-ci/connectors/pipelines/pipeline_reports -name 'output.json' -print -quit)
142142
job_output=$(cat ${json_output_file})
143143
success=$(echo ${job_output} | jq -r '.success')
144-
failed_jobs=$(echo ${job_output} | jq -r '.failed_steps')
144+
failed_step=$(echo ${job_output} | jq -r '.failed_steps | select(length > 0) | .[0] // "None"')
145145
run_duration=$(echo ${job_output} | jq -r '.run_duration')
146146
echo "## Job Output for ${{matrix.connector}}" >> $GITHUB_STEP_SUMMARY
147147
echo "- Success: ${success}" >> $GITHUB_STEP_SUMMARY
148148
echo "- Test Duration: $(printf "%.0f" ${run_duration})s" >> $GITHUB_STEP_SUMMARY
149-
echo "- Failed Checks: ${failed_jobs}" >> $GITHUB_STEP_SUMMARY
149+
if [ "${success}" != "true" ]; then
150+
echo "- Failed Step: ${failed_step}" >> $GITHUB_STEP_SUMMARY
151+
fi
150152
echo -e "\n[Download Job Output](${{steps.upload_job_output.outputs.artifact-url}})" >> $GITHUB_STEP_SUMMARY
151153
if [ "${success}" != "true" ]; then
152-
# Throw failure if tests failed
154+
echo "::error::Test failed for connector '${{ matrix.connector }}' on step '${failed_step}'. Check the logs for more details."
153155
exit 1
154156
fi

0 commit comments

Comments
 (0)