Skip to content

Commit

Permalink
Add check lint to circleci and remove the tag filter
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Nov 16, 2020
1 parent abd5193 commit 9283d8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
19 changes: 13 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@ version: 2.1
workflows:
main:
jobs:
- test:
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- test
- lint

jobs:
test:
docker:
- image: docker.io/golang:1.14.0
- image: docker.io/golang:1.14.12
steps:
- checkout
- run:
name: Test
command: make test
command: make test
lint:
docker:
- image: docker.io/golang:1.14.12
steps:
- checkout
- run:
name: Lint
command: make lint
14 changes: 7 additions & 7 deletions outputs/smtp_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Time: {{ .Time }}
var htmlTmpl = `
{{ $color := "#858585"}}
{{ if or (eq .Priority "Emergency") (eq .Priority "emergency") }}{{ $color = "#e20b0b" }}{{ end }}
{{ if or (eq .Priority ALERT) (eq .Priority ALERT) }}{{ $color = "#ff5400" }}{{ end }}
{{ if or (eq .Priority CRITICAL) (eq .Priority CRITICAL) }}{{ $color = "#ff9000" }}{{ end }}
{{ if or (eq .Priority ERROR) (eq .Priority ERROR) }}{{ $color = "#ffc700" }}{{ end }}
{{ if or (eq .Priority WARNING) (eq .Priority WARNING) }}{{ $color = "#ffff00" }}{{ end }}
{{ if or (eq .Priority NOTICE) (eq .Priority NOTICE) }}{{ $color = "#5bffb5" }}{{ end }}
{{ if or (eq .Priority INFORMATIONAL) (eq .Priority INFORMATIONAL) }}{{ $color = "#68c2ff" }}{{ end }}
{{ if or (eq .Priority DEBUG) (eq .Priority DEBUG) }}{{ $color = "#ccfff2" }}{{ end }}
{{ if or (eq .Priority "Alert") (eq .Priority "Alert") }}{{ $color = "#ff5400" }}{{ end }}
{{ if or (eq .Priority "Critical") (eq .Priority "critical") }}{{ $color = "#ff9000" }}{{ end }}
{{ if or (eq .Priority "Error") (eq .Priority "error") }}{{ $color = "#ffc700" }}{{ end }}
{{ if or (eq .Priority "Warning") (eq .Priority "warning") }}{{ $color = "#ffff00" }}{{ end }}
{{ if or (eq .Priority "Notice") (eq .Priority "notice") }}{{ $color = "#5bffb5" }}{{ end }}
{{ if or (eq .Priority "Informational") (eq .Priority "informational") }}{{ $color = "#68c2ff" }}{{ end }}
{{ if or (eq .Priority "Debug") (eq .Priority "debug") }}{{ $color = "#ccfff2" }}{{ end }}
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css">
Expand Down

0 comments on commit 9283d8c

Please sign in to comment.