From ba74e84c77678a209fa6b93cd6ad8cf750632fc5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 29 Aug 2025 20:09:43 +0000 Subject: [PATCH] Enhance CI workflow with job dependencies and documentation Co-authored-by: Burnett01 <1208707+Burnett01@users.noreply.github.com> --- .github/workflows/ci.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4e17c7..6b14df8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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" \ No newline at end of file + 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!" \ No newline at end of file