set token for unit tests

This commit is contained in:
Roy Crihfield 2023-07-11 10:28:49 +08:00
parent 413d6afd38
commit 41de4a6aec

View File

@ -21,6 +21,11 @@ jobs:
# TODO - nonsensical failure on gitea # TODO - nonsensical failure on gitea
# - name: "Run DB container" # - name: "Run DB container"
# run: docker compose -f test/compose.yml up --wait # run: docker compose -f test/compose.yml up --wait
- name: "Set up gitea access token"
env:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
- name: "Run tests" - name: "Run tests"
run: go test -v ./... run: go test -v ./...