Reviewed-on: #1 Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>main latest
parent
a701a93b81
commit
17c89d0562
|
@ -0,0 +1,41 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: compliance
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
pull: always
|
||||||
|
image: golang:1.16
|
||||||
|
commands:
|
||||||
|
- go test -race ./...
|
||||||
|
- name: check
|
||||||
|
pull: always
|
||||||
|
image: golang:1.16
|
||||||
|
commands:
|
||||||
|
- go vet ./...
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: release
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
pull: always
|
||||||
|
image: golang:1.16
|
||||||
|
commands:
|
||||||
|
- go build git.jojodev.com/golang/go-playground/cmd/playground
|
||||||
|
- name: gitea-release
|
||||||
|
pull: always
|
||||||
|
image: jolheiser/drone-gitea-main:latest
|
||||||
|
settings:
|
||||||
|
token:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base: https://git.jojodev.com
|
||||||
|
files:
|
||||||
|
- "playground"
|
|
@ -23,7 +23,7 @@ func TestShare(t *testing.T) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.EqualFold(link, resp) {
|
if !strings.EqualFold(string(link), resp) {
|
||||||
t.Logf("Expected `%s` but got `%s`\n", resp, link)
|
t.Logf("Expected `%s` but got `%s`\n", resp, link)
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ func TestShare(t *testing.T) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.EqualFold(link2, "test-") {
|
if !strings.EqualFold(string(link2), "test-") {
|
||||||
t.Logf("Expected `test-` but got `%s`\n", link2)
|
t.Logf("Expected `test-` but got `%s`\n", link2)
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue