experiment with compose

This commit is contained in:
Roy Crihfield 2023-07-11 16:47:56 +08:00
parent 3c85637436
commit cc1c9fa860

View File

@ -18,16 +18,18 @@ jobs:
with:
go-version-file: 'go.mod'
check-latest: true
- name: "Run DB container"
run: docker compose -f test/compose.yml up --wait-timeout 30 -d
- name: "Set up Gitea access token"
env:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
[[ -n "$TOKEN" ]]
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
- name: "Run tests"
run: go test -v ./...
- name: "Run DB container"
run: |
docker compose -f test/compose.yml up --wait-timeout 30 -d
go test -v ./...
# - name: "Run tests"
# run: go test -v ./...
integration-tests:
name: "Run integration tests"