Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Add testing to Drone pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Aug 8, 2020
1 parent 1361c3e commit e6c3e38
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .drone.yml
Expand Up @@ -2,12 +2,22 @@ kind: pipeline
name: build & release

steps:
- name: fetch
- name: fetch tags
image: docker:git
commands:
- git fetch --tags
when:
event: tag
- name: test
image: golang:1.14-alpine
commands:
- go test -v .
when:
event:
exclude:
- tag
- name: release
image: golang
image: golang:1.14-alpine
environment:
GITEA_TOKEN:
from_secret: goreleaser_gitea_token
Expand Down

0 comments on commit e6c3e38

Please sign in to comment.