WiP: ToDo

This commit is contained in:
s3rj1k 2024-12-03 00:05:31 +01:00
parent b48192dcc9
commit 873a4a8412
No known key found for this signature in database
4 changed files with 70 additions and 2 deletions

View File

@ -76,3 +76,29 @@ jobs:
working-directory: freeswitch
run: |
./ci.sh -t scan-build -a validate -c freeswitch -p "$GITHUB_WORKSPACE/freeswitch"
# ToDo: FixMe
# - name: Upload Scan-Build logs
# if: failure()
# uses: actions/upload-artifact@v4
# with:
# name: scan-build-logs
# path: freeswitch
# retention-days: 3
# if-no-files-found: ignore
# compression-level: 9
# ToDo: TestMe
# - name: Notify run tests result to slack
# if: |
# failure() &&
# github.event_name == 'push' &&
# (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10') &&
# secrets.SLACK_DEVOPS_CI_CHANNEL != '' &&
# secrets.SLACK_WEBHOOK_URL != ''
# uses: signalwire/actions-template/.github/actions/slack@main
# with:
# CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
# MESSAGE: Scan-Build ${{ github.repository }} > <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>. Static analysis failed.
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -79,11 +79,26 @@ jobs:
./collect-test-logs.sh --dir logs --print
- name: Upload Unit-Test logs
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: unit-test-logs
name: test-results-${{ github.sha }}-${{ github.run_number }}
path: ${{ steps.unit_tests.outputs.logs_path }}
retention-days: 3
if-no-files-found: ignore
compression-level: 9
# ToDo: TestMe
# - name: Notify run tests result to slack
# if: |
# failure() &&
# github.event_name == 'push' &&
# (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10') &&
# secrets.SLACK_DEVOPS_CI_CHANNEL != '' &&
# secrets.SLACK_WEBHOOK_URL != ''
# uses: signalwire/actions-template/.github/actions/slack@main
# with:
# CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
# MESSAGE: Unit-Tests ${{ github.repository }} > <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>. Some tests are failing.
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -113,3 +113,28 @@ jobs:
run: |
test -d "/cores" && ls -lah /cores
./collect-test-logs.sh --dir logs --print
- name: Upload Unit-Test logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ github.sha }}-${{ github.run_number }}-${{ inputs.current-group }}-of-${{ inputs.total-groups }}
path: ${{ inputs.working-directory }}/logs
retention-days: 3
if-no-files-found: ignore
compression-level: 9
# ToDo: TestMe
# - name: Notify run tests result to slack
# if: |
# failure() &&
# github.event_name == 'push' &&
# (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/v1.10') &&
# secrets.SLACK_DEVOPS_CI_CHANNEL != '' &&
# secrets.SLACK_WEBHOOK_URL != ''
# uses: signalwire/actions-template/.github/actions/slack@main
# with:
# CHANNEL: ${{ secrets.SLACK_DEVOPS_CI_CHANNEL }}
# MESSAGE: Unit-Tests ${{ github.repository }} > <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>. Some tests are failing.
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -82,6 +82,8 @@ else
fi
echo "*** $log was saved"
exit $exitstatus
fi
echo ""