Skip to content

Commit

Permalink
Remove old slack unit test notification steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Jan 16, 2025
1 parent c6c1f26 commit 8eabfd7
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
install: true
driver: docker

- name: Notify workflow starting
uses: voxmedia/github-action-slack-notify-build@v1
continue-on-error: true
if: success()
id: slack
with:
channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
status: STARTING
color: warning
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
#- name: Notify workflow starting
# uses: voxmedia/github-action-slack-notify-build@v1
# continue-on-error: true
# if: success()
# id: slack
# with:
# channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
# status: STARTING
# color: warning
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

- name: Setup
run: bash -c 'mkdir -p ./freesound-data/{packs,uploads,avatars} && echo FS_USER_ID_FROM_ENV=$(id -u) > .env && cp freesound/local_settings.example.py freesound/local_settings.py'
Expand All @@ -57,25 +57,25 @@ jobs:
- name: Run tests
run: docker compose -f docker-compose.test.yml run --rm test_runner python manage.py test --noinput --settings=freesound.test_settings

- name: Notify success
uses: voxmedia/github-action-slack-notify-build@v1
continue-on-error: true
if: success()
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
status: SUCCESS
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

- name: Notify failure
uses: voxmedia/github-action-slack-notify-build@v1
if: failure()
with:
message_id: ${{ steps.slack.outputs.message_id }}
channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
status: FAILED
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
#- name: Notify success
# uses: voxmedia/github-action-slack-notify-build@v1
# continue-on-error: true
# if: success()
# with:
# message_id: ${{ steps.slack.outputs.message_id }}
# channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
# status: SUCCESS
# color: good
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

#- name: Notify failure
# uses: voxmedia/github-action-slack-notify-build@v1
# if: failure()
# with:
# message_id: ${{ steps.slack.outputs.message_id }}
# channel_id: ${{ secrets.SLACK_NOTIFICATIONS_CHANNEL_ID }}
# status: FAILED
# color: danger
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit 8eabfd7

Please sign in to comment.