diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 33d00a1..71c4805 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,18 +8,36 @@ jobs: steps: - name: Check repository code uses: actions/checkout@v4 - - name: List files in the repository + + - name: Show workspace structure run: | - ls ${{ gitea.workspace }} - - name: setup go - uses: actions/setup-go@v6 + echo "📁 Workspace content:" + ls -la + echo "📄 Checking go.mod:" + cat go.mod || echo "No go.mod file" + + - name: Setup Go + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' + + - name: Show Go environment + run: | + echo "🔧 Go environment:" + go version + go env GOPROXY + go env GOMODCACHE + - name: Download dependencies run: | + echo "🔄 Starting dependency download..." + start_time=$(date +%s) go mod download + end_time=$(date +%s) + echo "✅ Dependencies downloaded in $((end_time - start_time)) seconds" - name: Build Go run: | + echo "🔨 Building application..." go build -v ./... - \ No newline at end of file + echo "🎉 Build successful!" \ No newline at end of file