Skip to content

Commit 2dd29ed

Browse files
committed
ci: Add custom eslint command
1 parent f559a01 commit 2dd29ed

File tree

9 files changed

+2047
-152
lines changed

9 files changed

+2047
-152
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,20 @@ export default {
8888

8989
## Inputs
9090

91-
| Name | Description | Required | Default |
92-
| ------------------- | ------------------------------------------------------------------- | -------- | --------------------------- |
93-
| token | Token used for pushing fixes and commenting on PRs. | true | |
94-
| working-directory | Working directory to run the action in | false | "." |
95-
| web-components-src | The path to the directory containing the web components source code | false | "src/\*_/_.{ts,tsx}" |
96-
| test-src | The path to the directory containing the test source code | false | "src/test/\*_/_.test.ts" |
97-
| test-results-path | The path to the test results file | false | "./test-results.xml" |
98-
| coverage-path | The path to the coverage file | false | "coverage/lcov.info" |
99-
| run-static-analysis | Whether to run static analysis | false | true |
100-
| run-code-formatting | Whether to run code formatting | false | true |
101-
| run-tests | Whether tests should be run. | false | true |
102-
| run-coverage | Whether to run coverage | false | true |
103-
| create-comment | Whether to create a comment on the PR | false | true |
104-
| coverage-pass-score | The minimum coverage score required to pass | false | "80" |
105-
| eslint-config-path | The path to the ESLint configuration file | false | "eslint.config.\*" |
106-
| test-config-path | The path to the test configuration file | false | "web-test-runner.config.\*" |
91+
| Name | Description | Required | Default |
92+
| ------------------- | ------------------------------------------------------------------- | -------- | --------------------------------------------------------------------- |
93+
| token | Token used for pushing fixes and commenting on PRs. | true | |
94+
| working-directory | Working directory to run the action in | false | "." |
95+
| web-components-src | The path to the directory containing the web components source code | false | "src/\*_/_.{ts,tsx}" |
96+
| test-src | The path to the directory containing the test source code | false | "src/test/\*_/_.test.ts" |
97+
| test-results-path | The path to the test results file | false | "./test-results.xml" |
98+
| coverage-path | The path to the coverage file | false | "coverage/lcov.info" |
99+
| run-static-analysis | Whether to run static analysis | false | true |
100+
| run-code-formatting | Whether to run code formatting | false | true |
101+
| run-tests | Whether tests should be run. | false | true |
102+
| run-coverage | Whether to run coverage | false | true |
103+
| create-comment | Whether to create a comment on the PR | false | true |
104+
| coverage-pass-score | The minimum coverage score required to pass | false | "80" |
105+
| eslint-config-path | The path to the ESLint configuration file | false | "eslint.config.\*" |
106+
| test-config-path | The path to the test configuration file | false | "web-test-runner.config.\*" |
107+
| eslint-cmd | The command used for eslint | false | "npx eslint -f unix $web-components-src --config $eslint-config-path" |

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ inputs:
8080
required: false
8181
default: "web-test-runner.config.*"
8282

83+
eslint-cmd:
84+
description: "The command to run ESLint"
85+
required: false
86+
default: ""
8387
runs:
8488
using: node20
8589
main: dist/index.js

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

custom-elements.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,24 @@
257257
}
258258
]
259259
},
260+
{
261+
"kind": "javascript-module",
262+
"path": "coverage/lcov-report/block-navigation.js",
263+
"declarations": [],
264+
"exports": []
265+
},
266+
{
267+
"kind": "javascript-module",
268+
"path": "coverage/lcov-report/prettify.js",
269+
"declarations": [],
270+
"exports": []
271+
},
272+
{
273+
"kind": "javascript-module",
274+
"path": "coverage/lcov-report/sorter.js",
275+
"declarations": [],
276+
"exports": []
277+
},
260278
{
261279
"kind": "javascript-module",
262280
"path": "src/scripts/analyze.ts",

dist/index.js

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)