-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkExMjhHQ00ifQ.T0DfD55J-CMbYf3M5JwHF6Iu3kw-OJIyvUHqLuRazzHn9PNk-DoVPsdMVANy2lFjVPyDteLkiiSO08NjE9mQueArIGuSQ5smNbfCIJRbuodNCstGJu-_Gwq2-JUhqMvFpbZOK92d1eOyDAylLs0btaWrnjGYN6cc7qDmvnvulCIR3d_dsO3r_a3ZjXpyLRl6RajPVaQyqz8rqWpg2rN1lPjcaPZEl6DR5ATOHNj0mrkRDnrRp5Yy79JB5w3c-mYjqSM8nFZu83Rvcra2_Iby6jY8mV-GlTZ6hLSOO4LIPFSjlbeXMh3uYc6vEXbbzZiOSXEizu0IhzU68dI8TmlPpQ.aJTZ-Mmszfslvl-M.OenD9dYsEeEp28DiNK0ktUwBnkVqKf5J_KE1Lx0j_QnOBhVOQucWfr51gb-5UDIjFSdkw9mXXLY_dFf9Xcs0puW7xlJeG3q5uWec9A8pV4ncipb-9z2XJ3Uwp6J-YrmTwGV9UFCnRTCIlOQg1oW22AGULTewwReRCsFrittUIm8ymNjVAYcOw1q1hONbxKIv22UkttPFV2EhG5iUPHnv.RHCaqwIPFTirSg2wYkbD5w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# copy this file to .drone.sec.yaml and insert <REVIEWDOG_GITHUB_API_TOKEN> | ||
# cp .drone.sec.sample.yaml .drone.sec.yaml | ||
environment: | ||
REVIEWDOG_GITHUB_API_TOKEN: <REVIEWDOG_GITHUB_API_TOKEN> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run the below command when you edit .drone.yml | ||
# drone secure --repo haya14busa/errorformat --in .drone.sec.yaml | ||
# | ||
build: | ||
test: | ||
image: golang | ||
commands: | ||
- go get -d -v -t ./... | ||
- go test -v ./... | ||
lint: | ||
image: golang | ||
environment: | ||
- REVIEWDOG_GITHUB_API_TOKEN=$$REVIEWDOG_GITHUB_API_TOKEN | ||
commands: | ||
- go get github.com/haya14busa/reviewdog/cmd/reviewdog | ||
- go get github.com/golang/lint/golint | ||
- go get honnef.co/go/unused/cmd/unused | ||
- | | ||
go tool vet -all -shadowstrict . 2>&1 | reviewdog -f=govet -ci=droneio | ||
- | | ||
golint ./... | reviewdog -f=golint -ci=droneio | ||
- | | ||
unused ./... | reviewdog -efm="%f:%l:%c: %m" -ci=droneio | ||
when: | ||
event: pull_request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.drone.sec.yaml |