mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:26:15 -06:00
update drone yml
This commit is contained in:
parent
24c5ddcced
commit
6d07b414c8
1 changed files with 26 additions and 3 deletions
29
.drone.yml
29
.drone.yml
|
|
@ -14,6 +14,11 @@ steps:
|
||||||
# See: https://golangci-lint.run/
|
# See: https://golangci-lint.run/
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golangci/golangci-lint:v1.41.1
|
image: golangci/golangci-lint:v1.41.1
|
||||||
|
volumes:
|
||||||
|
- name: go-build
|
||||||
|
path: /root/.cache/go-build
|
||||||
|
- name: golangci-lint-cache
|
||||||
|
path: /root/.cache/golangci-lint
|
||||||
commands:
|
commands:
|
||||||
- golangci-lint run --timeout 5m0s --tests=false --verbose
|
- golangci-lint run --timeout 5m0s --tests=false --verbose
|
||||||
when:
|
when:
|
||||||
|
|
@ -23,6 +28,9 @@ steps:
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.16.4
|
image: golang:1.16.4
|
||||||
|
volumes:
|
||||||
|
- name: go-build
|
||||||
|
path: /root/.cache/go-build
|
||||||
environment:
|
environment:
|
||||||
GTS_DB_ADDRESS: postgres
|
GTS_DB_ADDRESS: postgres
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -49,15 +57,30 @@ steps:
|
||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
services:
|
# We need a postgres service running for the test step.
|
||||||
# We need this postgres service running for the test step.
|
|
||||||
# See: https://docs.drone.io/pipeline/docker/syntax/services/
|
# See: https://docs.drone.io/pipeline/docker/syntax/services/
|
||||||
|
services:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
# We can speed up builds significantly by caching build artifacts between runs.
|
||||||
|
# See: https://docs.drone.io/pipeline/docker/syntax/volumes/host/
|
||||||
|
volumes:
|
||||||
|
- name: go-build-cache
|
||||||
|
host:
|
||||||
|
path: /drone/gotosocial/go-build
|
||||||
|
- name: golangci-lint-cache
|
||||||
|
host:
|
||||||
|
path: /drone/gotosocial/golangci-lint
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 888b0a9964be9bddad325a8eab0f54350f3cd36c333564ad4333811b4841b640
|
hmac: 0241187feb5302278e4e3d8460157e9ec6a2c57eb5d427719e712b8a1b6da8e0
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue