use correct test function
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Tobias Trabelsi 2022-07-09 23:15:25 +02:00
parent 021db20aa1
commit 6165e5ae19
Signed by: lerentis
GPG Key ID: FF0C2839718CAF2E
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 ."