diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index bbe3bbb..5593a6b 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -19,11 +19,12 @@ jobs: go-version-file: 'go.mod' check-latest: true - name: "Run DB container" - run: docker compose -f test/compose.yml up --wait-timeout 30 + 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 ./... @@ -46,7 +47,7 @@ jobs: env: TOKEN: ${{ secrets.CICD_REPO_TOKEN }} run: | - [ -n "$TOKEN"] + [[ -n "$TOKEN" ]] docker build ./plugeth-statediff -t cerc/plugeth-statediff:local \ --build-arg GIT_VDBTO_TOKEN="$TOKEN" docker build ./plugeth -t cerc/plugeth:local \