Добавлен pipe для билда go файлов
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m6s

This commit is contained in:
Ганеев Артем
2025-11-22 17:41:08 +03:00
parent 5fe2774d3c
commit 92cf2ac897

View File

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