Skip to content

Commit ff62936

Browse files
authored
ci: fix CI reports not uploading (#138)
1 parent 819555f commit ff62936

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/connector-tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ jobs:
9494
# cdk_extra: n/a
9595

9696
name: "Check: '${{matrix.connector}}' (skip=${{needs.cdk_changes.outputs['src'] == 'false' || needs.cdk_changes.outputs[matrix.cdk_extra] == 'false'}})"
97+
permissions:
98+
checks: write
9799
steps:
98100
- name: Abort if extra not changed (${{matrix.cdk_extra}})
99101
id: no_changes
@@ -131,15 +133,18 @@ jobs:
131133
run: |
132134
cd airbyte
133135
make tools.airbyte-ci-dev.install
134-
airbyte-ci-dev connectors \
136+
airbyte-ci-dev \
137+
--ci-report-bucket-name=airbyte-ci-reports-multi \
138+
connectors \
135139
--name ${{matrix.connector}} \
136140
--use-local-cdk \
137141
test \
138142
--fail-fast \
139143
--skip-step qa_checks \
140144
--skip-step connector_live_tests
141145
142-
- name: Evaluate Test Output
146+
- name: Evaluate Test
147+
id: evaluate_output
143148
if: always() && steps.no_changes.outputs.status != 'cancelled'
144149
run: |
145150
# save job output json file as ci step output
@@ -148,7 +153,9 @@ jobs:
148153
success=$(echo ${job_output} | jq -r '.success')
149154
failed_step=$(echo ${job_output} | jq -r '.failed_steps | select(length > 0) | .[0] // "None"')
150155
run_duration=$(echo ${job_output} | jq -r '.run_duration')
156+
html_report_url=$(echo ${job_output} | jq -r '.html_report_url')
151157
echo "## Job Output for ${{matrix.connector}}" >> $GITHUB_STEP_SUMMARY
158+
echo "- [HTML Report](${html_report_url})" >> $GITHUB_STEP_SUMMARY
152159
echo "- Success: ${success}" >> $GITHUB_STEP_SUMMARY
153160
echo "- Test Duration: $(printf "%.0f" ${run_duration})s" >> $GITHUB_STEP_SUMMARY
154161
if [ "${success}" != "true" ]; then
@@ -159,6 +166,8 @@ jobs:
159166
echo "::error::Test failed for connector '${{ matrix.connector }}' on step '${failed_step}'. Check the logs for more details."
160167
exit 1
161168
fi
169+
echo "success=${success}" >> $GITHUB_OUTPUT
170+
echo "html_report_url=${html_report_url}" >> $GITHUB_OUTPUT
162171
163172
# Upload the job output to the artifacts
164173
- name: Upload Job Output

0 commit comments

Comments
 (0)