Repository navigation
v1.1.1
What's Changed
-
Removed Introductory Note:
The note suggesting the use ofpull_request_targetfor forked pull requests has been removed. -
Added Yarn Project Detection:
The workflow now checks for ayarn.lockfile. If found, it setsPROJECT_TYPE=node-yarnand updates the commands to useyarn install,yarn test, andyarn lint. -
Introduced Dependency Caching:
Two new steps have been added:- One step prepares a cache key using a defined
CACHE_PATHand aDEPENDENCY_FILE(e.g.,package-lock.jsonorpom.xml). - Another step uses
actions/cache@v3to cache the corresponding dependency directory.
- One step prepares a cache key using a defined
-
Added Retry Logic for Build & Test Commands:
A new shell script (retry.sh) is generated with aretry_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 acoverage/coverage-summary.jsonfile and extracts a coverage percentage usingjq. For Maven, Gradle, and Python projects, placeholder coverage messages are provided. -
Stricter Lint Failure Handling:
The lint step now runs underset -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 ofsed -E 's/^ {10}//'has been introduced to strip extra leading spaces from the generatedretry.shscript, 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