[Rt-commit] rt branch, 4.4/github-actions-testing, updated. rt-4.4.4-222-g5abc744188
Dianne Skoll
dianne at bestpractical.com
Thu Feb 4 15:07:29 EST 2021
The branch, 4.4/github-actions-testing has been updated
via 5abc744188d66eb30bdb3479c4b3701e369d39d0 (commit)
from 5ddcb68bd2d888621dcb174abcd36142c6c52e9b (commit)
Summary of changes:
.github/workflows/github-action.yml | 69 ++++++++++++++++++++++++++-----------
1 file changed, 48 insertions(+), 21 deletions(-)
- Log -----------------------------------------------------------------
commit 5abc744188d66eb30bdb3479c4b3701e369d39d0
Author: Dianne Skoll <dianne at bestpractical.com>
Date: Thu Feb 4 15:07:08 2021 -0500
Switch to a different Slack notification add-on that uses a Webhook instead of a Bot Token
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 1c08bf3891..2113fa1312 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -30,13 +30,22 @@ jobs:
DB_VERSION_TAG: 10.3
shell: bash
run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=root -e RT_DBA_PASSWORD=password rt bash -c "cd /rt && prove -lj9 t/*"
- - name: Post test results to Slack
- if: always()
- uses: kpritam/slack-job-status-action at v1
- with:
- job-status: ${{ job.status }}
- slack-bot-token: ${{ secrets.SLACK_NOTIFICATIONS }}
- channel: github
+ - name: Post success to Slack
+ if: success()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_mariadb ${{ job.status }}
+ SLACK_COLOR: good
+ - name: Post failure to Slack
+ if: failure()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_mariadb ${{ job.status }}
+ SLACK_COLOR: danger
rt_test_sqlite:
runs-on: ubuntu-latest
steps:
@@ -56,13 +65,22 @@ jobs:
RT_TEST_PARALLEL: 1
shell: bash
run: docker exec -e RT_TEST_PARALLEL=1 rt bash -c "cd /rt && prove -lj9 t/*"
- - name: Post test results to Slack
- if: always()
- uses: kpritam/slack-job-status-action at v1
- with:
- job-status: ${{ job.status }}
- slack-bot-token: ${{ secrets.SLACK_NOTIFICATIONS }}
- channel: github
+ - name: Post success to Slack
+ if: success()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_sqlite ${{ job.status }}
+ SLACK_COLOR: good
+ - name: Post failure to Slack
+ if: failure()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_sqlite ${{ job.status }}
+ SLACK_COLOR: danger
rt_test_postgresql_apache_mod_fcgid:
runs-on: ubuntu-latest
steps:
@@ -82,10 +100,19 @@ jobs:
- name: Run RT tests
shell: bash
run: docker exec -e RT_TEST_PARALLEL=1 -e RT_DBA_USER=postgres -e RT_DBA_PASSWORD=password -u rt-user rt bash -c "cd /rt && prove -lj9 t/*"
- - name: Post test results to Slack
- if: always()
- uses: kpritam/slack-job-status-action at v1
- with:
- job-status: ${{ job.status }}
- slack-bot-token: ${{ secrets.SLACK_NOTIFICATIONS }}
- channel: github
+ - name: Post success to Slack
+ if: success()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_postgresql_apache_mod_fcgid ${{ job.status }}
+ SLACK_COLOR: good
+ - name: Post failure to Slack
+ if: failure()
+ uses: rtCamp/action-slack-notify at v2
+ env:
+ SLACK_USERNAME: github
+ SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS }}
+ SLACK_TITLE: rt_test_postgresql_apache_mod_fcgid ${{ job.status }}
+ SLACK_COLOR: danger
-----------------------------------------------------------------------
More information about the rt-commit
mailing list