Skip to content

Commit cf46a46

Browse files
chore: Add paths for custom config files for test and eslint (#27)
chore: Add paths for custom config files for test and eslint deps: Update dependencies
1 parent 6ec04b0 commit cf46a46

File tree

7 files changed

+1667
-1073
lines changed

7 files changed

+1667
-1073
lines changed

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,19 @@ 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" |
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.\*" |

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,15 @@ inputs:
7070
required: false
7171
default: "80"
7272

73-
# Define your outputs here.
74-
# outputs:
73+
eslint-config-path:
74+
description: "The path to the ESLint configuration file"
75+
required: false
76+
default: "eslint.config.*"
77+
78+
test-config-path:
79+
description: "The path to the test configuration file"
80+
required: false
81+
default: "web-test-runner.config.*"
7582

7683
runs:
7784
using: node20

dist/index.js

Lines changed: 15 additions & 3 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)