All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m6s
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Gitea Actions Demo
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Show workspace structure
|
|
run: |
|
|
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 ./...
|
|
echo "🎉 Build successful!" |