33# ![ Icon] ( data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hlY2stY2lyY2xlIiBjb2xvcj0iYmx1ZSI+PHBhdGggZD0iTTIyIDExLjA4VjEyYTEwIDEwIDAgMSAxLTUuOTMtOS4xNCI+PC9wYXRoPjxwb2x5bGluZSBwb2ludHM9IjIyIDQgMTIgMTQuMDEgOSAxMS4wMSI+PC9wb2x5bGluZT48L3N2Zz4= ) GitHub Action: Lint
44
55<div align =" center " >
6- <img src =" https://opengraph.githubassets.com/b6dcaafc587a2f813f157270f31cf5a39003dfd51e49d546897431af67c35caa /hoverkraft-tech/ci-github-nodejs " width =" 60px " align =" center " alt =" Lint " />
6+ <img src =" https://opengraph.githubassets.com/c77bac75f0a5745bf85132edbeef115dc3c74ec45b17031716fdead2c865de2f /hoverkraft-tech/ci-github-nodejs " width =" 60px " align =" center " alt =" Lint " />
77</div >
88
99---
@@ -30,7 +30,7 @@ Action to lint Node.js projects with support for pull request reporting and anno
3030## Usage
3131
3232``` yaml
33- - uses : hoverkraft-tech/ci-github-nodejs/actions/lint@ce2bb8274a37c1219be2bcae2a1b2528c2c72957 # 0.19 .0
33+ - uses : hoverkraft-tech/ci-github-nodejs/actions/lint@a9809af04394e66675b8644865be1ddcec02cdcd # 0.20 .0
3434 with :
3535 # Working directory where lint commands are executed.
3636 # Can be absolute or relative to the repository root.
@@ -44,37 +44,39 @@ Action to lint Node.js projects with support for pull request reporting and anno
4444
4545 # NPM/package manager script command to run for linting.
4646 # This should be a script defined in your package.json.
47- # The command should generate lint report files in a standard format (ESLint JSON or Checkstyle XML) .
47+ # The command should generate lint report files in a standard format.
4848 #
4949 # Default: `lint:ci`
50- command : " lint:ci"
50+ command : lint:ci
5151
52- # Path to lint report file to process as GitHub annotations.
53- # Supports ESLint JSON and Checkstyle XML formats.
54- # If not specified, auto-detection will be attempted for common paths:
55- # - eslint-report.json, eslint.json
56- # - checkstyle-result.xml, checkstyle.xml
52+ # Optional lint report path forwarded to the [parse-ci-reports](https://hoverkraft-tech/ci-github-common/actions/parse-ci-reports) action.
53+ # Provide an absolute path or one relative to the working directory.
54+ # When omitted, the action falls back to "auto:lint" detection.
5755 report-file : " "
56+
57+ # Optional path mapping to adjust file paths in test and coverage reports.
58+ # See the [parse-ci-reports documentation](https://hoverkraft-tech/ci-github-common/actions/parse-ci-reports) for details.
59+ path-mapping : " "
5860` ` `
5961
6062<!-- usage:end -->
6163<!-- inputs:start -->
6264
6365## Inputs
6466
65- | **Input** | **Description** | **Required** | **Default** |
66- | ----------------------- | -------------------------------------------------------------------- | ------------ | ----------- |
67- | **` working-directory`** | Working directory where lint commands are executed. | **false** | `.` |
68- | | Can be absolute or relative to the repository root. | | |
69- | **`container`** | Whether running in container mode (skips checkout and node setup) | **false** | `false` |
70- | **`command`** | NPM/package manager script command to run for linting. | **false** | `lint:ci` |
71- | | This should be a script defined in your package.json. | | |
72- | | The command should generate lint report files in a standard format. | | |
73- | **`report-file`** | Path to lint report file to process as GitHub annotations. | **false** | - |
74- | | Supports ESLint JSON and Checkstyle XML formats. | | |
75- | | If not specified, auto- detection will be attempted for common paths : | | |
76- | | - eslint-report.json, eslint.json | | |
77- | | - checkstyle-result.xml, checkstyle.xml | | |
67+ | **Input** | **Description** | **Required** | **Default** |
68+ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- |
69+ | **` working-directory`** | Working directory where lint commands are executed. | **false** | `.` |
70+ | | Can be absolute or relative to the repository root. | | |
71+ | **`container`** | Whether running in container mode (skips checkout and node setup) | **false** | `false` |
72+ | **`command`** | NPM/package manager script command to run for linting. | **false** | `lint:ci` |
73+ | | This should be a script defined in your package.json. | | |
74+ | | The command should generate lint report files in a standard format. | | |
75+ | **`report-file`** | Optional lint report path forwarded to the [parse-ci-reports](https://hoverkraft-tech/ci-github-common/actions/parse-ci-reports) action. | **false** | - |
76+ | | Provide an absolute path or one relative to the working directory. | | |
77+ | | When omitted, the action falls back to " auto:lint" detection. | | |
78+ | **`path-mapping`** | Optional path mapping to adjust file paths in test and coverage reports. | **false** | - |
79+ | | See the [parse-ci-reports documentation](https://hoverkraft-tech/ci-github-common/actions/parse-ci-reports) for details. | | |
7880
7981<!-- inputs:end -->
8082<!-- secrets:start -->
0 commit comments