export SLACK_WEBHOOK_URL="https://find-me-on.slack.com"
cp helm/values.yaml.dist helm/values.yaml
helm upgrade --install my-enigma helm --set slack.webhookUrl=$SLACK_WEBHOOK_URL
vim helm/values.yaml # Adding new notification rules for instance
helm upgrade --install my-enigma helm --set slack.webhookUrl=$SLACK_WEBHOOK_URL
docker build -t turbo-enigma .
docker run -it --rm -p 8000:80 \
-e SLACK_WEBHOOK_URL=$SLACK_WEBHOOK_URL \
-e NOTIFICATION_RULES='[{"channel":"#codelicia-team", "labels": ["Codelicia"]}]' turbo-enigma
curl localhost:8000 -d @payload/merge_request-open-just-testing.json
To run the tests locally, run the following command:
$ go test ./...
If you want to see how covered the project is, you can run the following command to get coverage report
$ go test ./... -coverprofile=coverage.out
Once the above has been run, it's time to see it in your browser. The following command will open a new tab in your browser with the code coverage.
$ go tool cover -html=coverage.out