This commit is contained in:
parent
79901c3109
commit
d148f54604
12
.drone.yml
12
.drone.yml
@ -61,7 +61,7 @@ kind: pipeline
|
|||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: test:pr
|
name: test:pr
|
||||||
steps:
|
steps:
|
||||||
- name: basic build test
|
- name: basic build
|
||||||
image: registry.odit.services/hub/library/golang:1.20-alpine3.16
|
image: registry.odit.services/hub/library/golang:1.20-alpine3.16
|
||||||
commands:
|
commands:
|
||||||
- go mod download
|
- go mod download
|
||||||
@ -70,6 +70,16 @@ steps:
|
|||||||
CGO_ENABLED: "0"
|
CGO_ENABLED: "0"
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
- name: test with redis
|
||||||
|
image: registry.odit.services/hub/library/redis:7-alpine3.16
|
||||||
|
commands:
|
||||||
|
- redis-server &
|
||||||
|
- ./build &
|
||||||
|
- wget http://localhost:8080/axios
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: "0"
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- pull_request
|
Loading…
x
Reference in New Issue
Block a user