mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-08-30 16:00:38 +02:00
Enhance CI workflow with job dependencies and documentation
Co-authored-by: Burnett01 <1208707+Burnett01@users.noreply.github.com>
This commit is contained in:
parent
707cd8465c
commit
ba74e84c77
1 changed files with 30 additions and 1 deletions
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
|
@ -1,3 +1,12 @@
|
|||
# GitHub Actions CI workflow for rsync-deployments
|
||||
# This workflow validates the action on every push and pull request by:
|
||||
# - Running BATS tests for the entrypoint script
|
||||
# - Validating the action.yml definition
|
||||
# - Building and testing the Docker image
|
||||
# - Checking file structure and permissions
|
||||
# - Linting shell scripts
|
||||
# - Running a final integration check
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
|
@ -67,6 +76,7 @@ jobs:
|
|||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build Docker Image
|
||||
needs: [validate-action, action-structure]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
@ -138,4 +148,23 @@ jobs:
|
|||
echo "ShellCheck found issues, but running with Docker-specific exclusions..."
|
||||
shellcheck -e SC1091 -e SC3046 entrypoint.sh
|
||||
}
|
||||
echo "Shell script linting completed"
|
||||
echo "Shell script linting completed"
|
||||
|
||||
integration-check:
|
||||
runs-on: ubuntu-latest
|
||||
name: Integration Check
|
||||
needs: [test, validate-action, docker-build, action-structure, lint-shell]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Final integration check
|
||||
run: |
|
||||
echo "All CI jobs completed successfully!"
|
||||
echo "✅ BATS tests passed"
|
||||
echo "✅ Action definition validated"
|
||||
echo "✅ Docker image built and tested"
|
||||
echo "✅ File structure validated"
|
||||
echo "✅ Shell scripts linted"
|
||||
echo ""
|
||||
echo "🎉 rsync-deployments action is ready for use!"
|
Loading…
Reference in a new issue