use correct test function
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
021db20aa1
commit
6165e5ae19
@ -24,18 +24,18 @@ steps:
|
|||||||
- /usr/bin/entrypoint /bin/s6-svscan /etc/s6
|
- /usr/bin/entrypoint /bin/s6-svscan /etc/s6
|
||||||
environment:
|
environment:
|
||||||
GITEA_PASSWORD:
|
GITEA_PASSWORD:
|
||||||
from_secret: GITEA_PASSWORD
|
from_secret: GITEA_TEST_PASSWORD
|
||||||
- name: test
|
- name: test
|
||||||
image: golang:1.18.3-alpine3.16
|
image: golang:1.18.3-alpine3.16
|
||||||
commands:
|
commands:
|
||||||
- "apk add --update --no-cache make build-base"
|
- "apk add --update --no-cache make build-base"
|
||||||
- "make test"
|
- "make testacc"
|
||||||
environment:
|
environment:
|
||||||
TF_ACC: 1
|
TF_ACC: 1
|
||||||
GITEA_BASE_URL: "http://localhost:3000"
|
GITEA_BASE_URL: "http://localhost:3000"
|
||||||
GITEA_USERNAME: test
|
GITEA_USERNAME: test
|
||||||
GITEA_PASSWORD:
|
GITEA_PASSWORD:
|
||||||
from_secret: GITEA_PASSWORD
|
from_secret: GITEA_TEST_PASSWORD
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ test: fmt-check
|
|||||||
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
|
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
|
||||||
|
|
||||||
testacc: fmt-check
|
testacc: fmt-check
|
||||||
TF_ACC=1 go test -v $(TEST) $(TESTARGS) -timeout 40m
|
go test -v $(TEST) $(TESTARGS) -timeout 40m
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@echo "go vet ."
|
@echo "go vet ."
|
||||||
|
Loading…
Reference in New Issue
Block a user