From 1c8a61ace35d692535d013a592f82aa3dc54bd3d Mon Sep 17 00:00:00 2001 From: Nurudeen Alhassan <87506184+Deencoding@users.noreply.github.com> Date: Tue, 25 Nov 2025 14:16:07 +0100 Subject: [PATCH] add CI/CD pipeline configuration for GitHub Actions --- RetryN.github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 RetryN.github/workflows/ci.yml diff --git a/RetryN.github/workflows/ci.yml b/RetryN.github/workflows/ci.yml new file mode 100644 index 0000000..e38f827 --- /dev/null +++ b/RetryN.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI/CD Pipeline + +on: + push: + branches: [ main, development ] + pull_request: + branches: [ main, development ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Build and test + run: mvn clean verify + + deploy-staging: + needs: test + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/development' + + steps: + - name: Deploy to Render staging + run: curl ${{ secrets.RENDER_DEPLOY_HOOK_STAGING }} -X POST + + deploy-production: + needs: test + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + + steps: + - name: Deploy to Render production + run: curl ${{ secrets.RENDER_DEPLOY_HOOK_PRODUCTION }} -X POST