From a4a33b9ad9ce469cd0df5331c5c2d9082193967e Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 12 Aug 2021 21:22:23 +0200 Subject: [PATCH] Don't run tests+lint on merge to main (#139) --- .drone.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 57514a086..42ec83ce4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,10 @@ steps: image: golangci/golangci-lint:v1.41.1 commands: - golangci-lint run --timeout 5m0s --tests=false --verbose + when: + event: + include: + - pull_request - name: test image: golang:1.16.4 @@ -26,6 +30,10 @@ steps: # `-p 1` => run maximum one test at a time # `./...` => run all tests - go test -count 1 -p 1 ./... + when: + event: + include: + - pull_request - name: publish image: plugins/docker @@ -50,6 +58,6 @@ services: POSTGRES_PASSWORD: postgres --- kind: signature -hmac: 78dd20d97444a9e2904552d56eb52f43ad30ba27e1d897a5ea6808971f9a0ae2 +hmac: 888b0a9964be9bddad325a8eab0f54350f3cd36c333564ad4333811b4841b640 ...