Skip to content

v1.1.1

Choose a tag to compare

@alessbarb alessbarb released this 16 Feb 12:30
· 52 commits to main since this release
b2abfb0

What's Changed

  • Removed Introductory Note:
    The note suggesting the use of pull_request_target for forked pull requests has been removed.

  • Added Yarn Project Detection:
    The workflow now checks for a yarn.lock file. If found, it sets PROJECT_TYPE=node-yarn and updates the commands to use yarn install, yarn test, and yarn lint.

  • Introduced Dependency Caching:
    Two new steps have been added:

    • One step prepares a cache key using a defined CACHE_PATH and a DEPENDENCY_FILE (e.g., package-lock.json or pom.xml).
    • Another step uses actions/cache@v3 to cache the corresponding dependency directory.
  • Added Retry Logic for Build & Test Commands:
    A new shell script (retry.sh) is generated with a retry_command() function that attempts to run a command multiple times with a short delay between attempts, helping to recover from transient failures.

  • Expanded Coverage Reporting:
    For Node-based projects, the workflow now checks for a coverage/coverage-summary.json file and extracts a coverage percentage using jq. For Maven, Gradle, and Python projects, placeholder coverage messages are provided.

  • Stricter Lint Failure Handling:
    The lint step now runs under set -e, causing the workflow to fail immediately if linting errors occur, rather than simply continuing.

  • Updated Build & Test Behavior:
    The workflow now exits early if the project type is unknown, removing unnecessary placeholder outputs and preventing further steps from running.

  • Fixed Indentation in the Retry Script:
    The use of sed -E 's/^ {10}//' has been introduced to strip extra leading spaces from the generated retry.sh script, preventing syntax errors.

  • Improved Markdown Formatting:
    A blank line has been inserted after the <summary>Files Changed</summary> tag in the final PR comment, ensuring that file links render correctly in GitHub.

Full Changelog: v1.0.0...v1.1.1