🧪 FINAL TEST: Ultra-Simple Pipeline
Single step with Alpine image: - No Node.js dependencies - No volumes or privileged mode - Basic echo commands only - Test if Agent executes ANY steps If this fails: Agent-Server communication broken
This commit is contained in:
parent
9c9f4e036c
commit
c79b40204a
|
|
@ -1,78 +1,12 @@
|
|||
# 🐍 Snake Game CI/CD Pipeline
|
||||
# Woodpecker CI Configuration for Podman
|
||||
# 🧪 Ultra-Simple Pipeline Test
|
||||
# Minimal configuration to test Agent-Server communication
|
||||
|
||||
# Pipeline 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:
|
||||
image: docker.io/node:18-alpine
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- echo "🧪 Running tests..."
|
||||
- npm test
|
||||
- echo "📊 Generating coverage report..."
|
||||
- npm run test:coverage
|
||||
- echo "✅ Tests completed successfully"
|
||||
- echo "✅ Pipeline is working!"
|
||||
- echo "Agent backend: local (Podman)"
|
||||
- echo "Test successful"
|
||||
when:
|
||||
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
|
||||
branch: [main, master, develop]
|
||||
Loading…
Reference in New Issue