use correct test function

This commit is contained in:
Tobias Trabelsi 2022-07-09 23:15:25 +02:00
parent 021db20aa1
commit 6165e5ae19
No known key found for this signature in database
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 ."