Simplify Woodpecker CI configuration
- Removed when conditions to test basic pipeline - Simplified to just two basic steps - Focus on getting pipeline working first
This commit is contained in:
parent
89e062ba44
commit
20c7c27586
|
|
@ -1,8 +1,3 @@
|
||||||
when:
|
|
||||||
- event: push
|
|
||||||
branch: main
|
|
||||||
- event: pull_request
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test-syntax
|
- name: test-syntax
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
@ -12,33 +7,12 @@ steps:
|
||||||
- ls -la
|
- ls -la
|
||||||
- echo "Checking install script syntax..."
|
- echo "Checking install script syntax..."
|
||||||
- sh -n install.sh && echo "✅ install.sh syntax OK" || echo "❌ install.sh syntax error"
|
- 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 ==="
|
- 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
|
- name: documentation-check
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo "Checking documentation..."
|
- echo "Checking documentation..."
|
||||||
- test -f README.md && echo "✅ README.md exists" || echo "❌ README.md missing"
|
- 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"
|
- test -s README.md && echo "✅ README.md has content" || echo "❌ README.md empty"
|
||||||
- echo "Documentation check completed"
|
- 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 ==="
|
|
||||||
Loading…
Reference in New Issue