From f3c5fb5fe6ddd03d94e42073566e2e94c82bcca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Dulai?= Date: Tue, 2 Jun 2026 22:14:44 +0200 Subject: [PATCH] Fix failing ci/cd setup --- .gitea/workflows/test.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 85435a7..f68956b 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,4 +1,4 @@ -name: Debug +name: Go Tests on: push: @@ -10,18 +10,24 @@ jobs: runs-on: ubuntu-latest steps: - - name: Show workspace + - name: Checkout repository + run: | + git clone \ + "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" \ + . + + git checkout "${GITHUB_SHA}" + + - name: Verify checkout run: | - echo "=== Workspace ===" pwd ls -la + test -f go.mod - - name: Dump environment variables + - name: Download dependencies run: | - echo "=== Environment Variables ===" - env | sort + go mod download - - name: Dump relevant variables only + - name: Run tests run: | - echo "=== Repository-related Variables ===" - env | grep -Ei 'gitea|github|repo|repository|workspace|ci' \ No newline at end of file + go test ./... -v \ No newline at end of file