gameadm/.woodpecker.yml

44 lines
1.6 KiB
YAML

when:
- event: push
branch: main
- event: pull_request
steps:
- name: test-syntax
image: alpine:latest
commands:
- echo "=== GameAdm CI Pipeline ==="
- echo "Testing repository structure..."
- ls -la
- echo "Checking install script syntax..."
- sh -n install.sh && echo "✅ install.sh syntax OK" || echo "❌ install.sh syntax error"
- echo "Checking module scripts..."
- for script in modules/*.sh; do sh -n "$script" && echo "✅ $script OK" || echo "❌ $script error"; done
- echo "=== Pipeline completed successfully ==="
- name: shellcheck-analysis
image: koalaman/shellcheck-alpine:latest
commands:
- echo "Running ShellCheck analysis..."
- shellcheck install.sh || echo "ShellCheck warnings in install.sh"
- shellcheck modules/*.sh || echo "ShellCheck warnings in modules"
- echo "ShellCheck analysis completed"
- name: documentation-check
image: alpine:latest
commands:
- echo "Checking documentation..."
- test -f README.md && echo "✅ README.md exists" || echo "❌ README.md missing"
- test -s README.md && echo "✅ README.md has content" || echo "❌ README.md empty"
- echo "Documentation check completed"
- name: webhook-integration-test
image: alpine:latest
commands:
- echo "=== Webhook Integration Test ==="
- echo "Repository: gameadm"
- echo "Branch: ${CI_COMMIT_BRANCH}"
- echo "Commit: ${CI_COMMIT_SHA}"
- echo "Trigger: ${CI_PIPELINE_EVENT}"
- echo "✅ Webhook successfully triggered Woodpecker CI"
- echo "=== Integration test completed ==="