experiment with compose
This commit is contained in:
parent
3c85637436
commit
cc1c9fa860
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user