Skip to content

Conversation

@alessbarb
Copy link
Contributor

  • Updated environment variables format from single to double quotes.
  • Improved dependency installation: now only installs jq and curl if they’re missing.
  • Enhanced input data validation with more detailed error messages.
  • Upgraded actions/checkout to v4 and added Node.js setup using actions/setup-node@v3.
  • Added project type detection for Node.js (and Yarn-based Node), Maven, Gradle, and Python with corresponding build, test, and lint commands.
  • Introduced dependency caching using actions/cache@v4 based on project type.
  • Implemented a retry_command function (via retry.sh) to reattempt build and test commands on transient failures.
  • Improved build, test, and coverage handling, including actual coverage parsing for Node projects.
  • Added steps to gather commit and PR details (labels, changed files).
  • Enhanced the PR comment to include detailed summaries of linting, test results, and coverage.
  • Added debug logging that runs when DEBUG is set to true.

Alessandro Barbagallo added 6 commits October 27, 2023 15:39
1. Setup Node.js Environment: 
A new step has been added after the checkout step to install Node.js using the actions/setup-node@v3 action. This ensures that Node and npm are available, preventing the "npm install: command not found" error.

2. Updated Checkout Action:  
The checkout action uses actions/checkout@v4 for the latest features and improvements.
- Removed the extra single quotes around the BUILD_COMMAND, TEST_COMMAND, and LINT_COMMAND variables in the project detection step.
- Now the commands (e.g., "npm install") are stored as plain text instead of "'npm install'", which was causing the "command not found" error.
- This update ensures that the Node environment (set up via actions/setup-node) can properly execute the build, test, and lint commands.
@github-actions
Copy link

Hey @alessbarb,

🚀 Pull Request Summary

Title: Update auto comment on pr - chore: update workflow configuration for enhanced robustness and functionality
PR URL: #331
PR Body: - Updated environment variables format from single to double quotes.

  • Improved dependency installation: now only installs jq and curl if they’re missing.
  • Enhanced input data validation with more detailed error messages.
  • Upgraded actions/checkout to v4 and added Node.js setup using actions/setup-node@v3.
  • Added project type detection for Node.js (and Yarn-based Node), Maven, Gradle, and Python with corresponding build, test, and lint commands.
  • Introduced dependency caching using actions/cache@v4 based on project type.
  • Implemented a retry_command function (via retry.sh) to reattempt build and test commands on transient failures.
  • Improved build, test, and coverage handling, including actual coverage parsing for Node projects.
  • Added steps to gather commit and PR details (labels, changed files).
  • Enhanced the PR comment to include detailed summaries of linting, test results, and coverage.
  • Added debug logging that runs when DEBUG is set to true.
    Labels:
    Workflow Status: success

Files Changed:

Lint Results

'Lint passed successfully!'

Test Summary

'All tests passed (example)'

Coverage Report

'No coverage info found.'

Last Commit SHA: d32c5b7
Message: Merge e7fcf4f into a81414c

✨ Please ensure all tests and checks pass.
For more details, see our contribution guide.

@alessbarb alessbarb merged commit 7aaff75 into development Feb 16, 2025
5 checks passed
@alessbarb alessbarb deleted the Update-auto_comment_on_pr branch February 16, 2025 15:03
alessbarb pushed a commit that referenced this pull request Feb 16, 2025
Merge pull request #331 from labrynx/Update-auto_comment_on_pr
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.

2 participants