Skip to content

Conversation

@aaronmedina-dev
Copy link

@aaronmedina-dev aaronmedina-dev commented Nov 6, 2025

Description of the proposed changes

  • Converted https://bitbucket.org/aligent/cooldrive-aem/src/production/bitbucket-pipelines.yml to github workflow.
  • Add conditional cache execution to support local testing with act
    • Skip actions/cache@v4 when running with act (checks env.ACT)
    • Prevents Node.js dependency errors in Maven container when testing in act
  • Add quiet mode input parameter for Maven builds
    • New 'quiet' input (default: true) to reduce Maven output verbosity
    • Helps reduce log noise during CI/CD runs
    • Debug mode (-X) still available when debug: true

Screenshots (if applicable)

Test Workflow config
image

Command for running:
act push --workflows .github/workflows/test-aem-sync.yml -q

Local testing of workflows. Was able to test the Tests and Build, but not repo sync.

image image

This is expected
image

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned in our contribution guide.

Notes to reviewers

ℹ️ When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

@aaronmedina-dev aaronmedina-dev changed the title Added AEM Sync to Cloudmanager repo github workflow: DO-1952: Added AEM Sync to Cloudmanager repo github workflow: Nov 7, 2025
Copy link
Member

@TheOrangePuff TheOrangePuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple changes 🙂

inputs:
# Build Configuration
skip-tests:
description: "Skip Maven test execution"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should be the other way round, it's a double negative when written like this. Should be:

description: "Maven test execution"
        required: false
        default: true

Same with the skip build


steps:
- name: Checkout code
uses: actions/checkout@v4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be upgraded to v5 now 🙂

runs-on: ubuntu-latest
needs: [run-tests]
if: |
always() &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm misunderstanding always() but what's the point of this? 😅 Is this not the equivalent of running if true && condition?

git config --global --add safe.directory $GITHUB_WORKSPACE
echo "✅ Git configuration complete"

- name: Validate required secrets
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could happen in a predeploy step to verify these exist, then we can fail early.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants