Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
psaavedra committed Jan 12, 2025
1 parent 01182e8 commit b1fc800
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/actions/podman-robot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,25 @@ runs:
shell: bash
run: |
cd .ci
echo "💿️ (ref: ${{ GITHUB_SHA }}) [${{ inputs.bitbake_buildname }} image](https://wk-contrib.igalia.com/yocto/meta-wpe-image/${TIMESTAMP}-${{ inputs.bitbake_buildname }}/)." > ci-message.txt
IP=$(sudo manage-devices -c /etc/manage-devices.yml ip ${{ inputs.bitbake_machine }})
echo "#!/bin/sh" > setup-env-local.sh
echo "export TEST_BOARD_IP=${IP}" >> setup-env-local.sh
echo "test_warning_detected=false" >> $GITHUB_ENV
./run-tests.sh || {
MESSAGE="Failures were detected in the test results in ${{ inputs.bitbake_buildname }} for ${{ inputs.bitbake_target }} with ${{ inputs.bitbake_machine }}"
echo "::warning file=.ci/run-tests.sh,title=Robot Framework tests::${MESSAGE}"
echo "test_warning_detected=true" >> $GITHUB_ENV
echo "${MESSAGE}" > warning.txt
echo "⚠️ ${MESSAGE}" >> ci-message.txt
}
TIMESTAMP=${{ steps.timestamp.outputs.timestamp }}
s3cmd put -r -F tests_results/robot s3://yocto/${TIMESTAMP}-${{ inputs.bitbake_buildname }}/
- name: Comment on the pull request if there is a warning
if: env.test_warning_detected == 'true'
- name: Comment on the pull request
uses: mshick/add-pr-comment@v2
with:
message-id: ${{ inputs.bitbake_buildname }}-${{ steps.timestamp.outputs.timestamp }}
message-path: |
.ci/warning.txt
.ci/ci-message.txt
- name: Clean the tests directory
if: always()
shell: bash
run: |
rm -rf .ci/setup-env-local.sh .ci/tests_results .ci/warning.txt
rm -rf .ci/setup-env-local.sh .ci/tests_results .ci/ci-message.txt

0 comments on commit b1fc800

Please sign in to comment.