Compare commits
10 Commits
9c9f4e036c
...
362f99387d
| Author | SHA1 | Date |
|---|---|---|
|
|
362f99387d | |
|
|
2da9f8a5b4 | |
|
|
9bdc4a6013 | |
|
|
124d12cbcb | |
|
|
df47dca011 | |
|
|
e692506aff | |
|
|
b876c94ece | |
|
|
7e66cf4795 | |
|
|
9f5948fb3f | |
|
|
c79b40204a |
|
|
@ -1,78 +1,9 @@
|
||||||
# 🐍 Snake Game CI/CD Pipeline
|
|
||||||
# Woodpecker CI Configuration for Podman
|
|
||||||
|
|
||||||
# Pipeline steps
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# 📋 Information
|
|
||||||
info:
|
|
||||||
image: docker.io/node:18-alpine
|
|
||||||
commands:
|
|
||||||
- echo "🐍 Starting Snake Game CI/CD Pipeline"
|
|
||||||
- echo "📦 Node.js Version:" && node --version
|
|
||||||
- echo "📦 NPM Version:" && npm --version
|
|
||||||
- echo "🔍 Workspace:" && pwd && ls -la
|
|
||||||
when:
|
|
||||||
branch: [main, master, develop]
|
|
||||||
|
|
||||||
# 📥 Install Dependencies
|
|
||||||
install:
|
|
||||||
image: docker.io/node:18-alpine
|
|
||||||
commands:
|
|
||||||
- echo "📥 Installing dependencies..."
|
|
||||||
- npm ci
|
|
||||||
- echo "✅ Dependencies installed"
|
|
||||||
when:
|
|
||||||
branch: [main, master, develop]
|
|
||||||
|
|
||||||
# 🔍 Code Quality Check
|
|
||||||
lint:
|
|
||||||
image: docker.io/node:18-alpine
|
|
||||||
commands:
|
|
||||||
- echo "🔍 Running code quality checks..."
|
|
||||||
- npm run lint || echo "⚠️ Linting warnings found"
|
|
||||||
- echo "✅ Code quality check completed"
|
|
||||||
when:
|
|
||||||
branch: [main, master, develop]
|
|
||||||
|
|
||||||
# 🧪 Run Tests
|
|
||||||
test:
|
test:
|
||||||
image: docker.io/node:18-alpine
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "🧪 Running tests..."
|
- echo "Pipeline is working!"
|
||||||
- npm test
|
- echo "Agent backend local"
|
||||||
- echo "📊 Generating coverage report..."
|
- echo "Test successful"
|
||||||
- npm run test:coverage
|
|
||||||
- echo "✅ Tests completed successfully"
|
|
||||||
when:
|
when:
|
||||||
branch: [main, master, develop]
|
branch: [main, master, develop]
|
||||||
|
|
||||||
# 🔨 Build Application
|
|
||||||
build:
|
|
||||||
image: docker.io/node:18-alpine
|
|
||||||
commands:
|
|
||||||
- echo "🔨 Building application..."
|
|
||||||
- npm run build
|
|
||||||
- echo "📦 Creating build artifacts..."
|
|
||||||
- tar -czf snake-game-build.tar.gz src/ server.js package*.json
|
|
||||||
- ls -la snake-game-build.tar.gz
|
|
||||||
- echo "✅ Build completed successfully"
|
|
||||||
when:
|
|
||||||
branch: [main, master, develop]
|
|
||||||
|
|
||||||
# 🐳 Build Application (Podman steps temporarily disabled)
|
|
||||||
# These steps require privileged mode and will be re-enabled once Agent permissions are configured
|
|
||||||
|
|
||||||
validate:
|
|
||||||
image: docker.io/node:18-alpine
|
|
||||||
commands:
|
|
||||||
- echo "✅ Basic pipeline validation successful"
|
|
||||||
- echo "📊 Workspace content:"
|
|
||||||
- ls -la
|
|
||||||
- echo "📦 Package.json present:" && ls package.json
|
|
||||||
- echo "🎯 Next: Enable container builds with proper permissions"
|
|
||||||
when:
|
|
||||||
branch: [main, master, develop]
|
|
||||||
|
|
||||||
# Advanced features disabled for initial testing
|
|
||||||
# Will be re-enabled once basic pipeline works
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
Agent successfully configured with Podman backend
|
Agent successfully configured with Podman backend
|
||||||
|
Simple test change
|
||||||
|
Final test Sat Aug 9 12:02:37 AM UTC 2025
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Control test with Pipeline #8 config
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Podman 5.5.2 erfolgreich! Sat Aug 9 12:49:39 AM UTC 2025
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Step 1 complete: Added /tmp volume
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
SUCCESS: Pipeline #8 worked - Agent communicates correctly!
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
tmpfs storage test Sat Aug 9 12:27:25 AM UTC 2025
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Persistent volumes test Sat Aug 9 12:25:46 AM UTC 2025
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue