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