Skip to content

Gotest Slack notifier

Notifications You must be signed in to change notification settings

smallpdf/notify_slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notify_slack

Turns your failing go test into slack messages

installation

wget -nv https://github.com/smallpdf/notify_slack/releases/latest/download/notify_slack && chmod +x notify_slack

setup

environment variables

NOTIFY_LOGLEVEL=DEBUG|INFO*|ERROR|...
NOTIFY_LOGFORMAT=console|json*
NOTIFY_DRYRUN=true|false*
[email protected],...
NOTIFY_GROUPS=backend,...
NOTIFY_SLACKTOKEN=....

NOTIFY_USERS and NOTIFY_GROUPS accept lists with a , as a separator.

example

go test -json ./testdata | tee >(./notify_slack)
go test -json ./testdata | tee >([email protected] notify_slack)

Don't forget to add Tester to the Account or Group.

releases

git tag v0.0.1
git push --tags
#see github actions