Skip to content

Commit fdf866f

Browse files
committed
docs: add examples for lint and test commands
Signed-off-by: Emilien Escalle <[email protected]>
1 parent 8a65cea commit fdf866f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

actions/lint/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ inputs:
2121
npm/pnpm/Yarn script command to run for linting.
2222
This should be a script defined in your `package.json`.
2323
The command should generate lint report files in a standard format.
24+
25+
ESLint: `eslint --format json -o eslint-report.json .`
26+
Prettier: `prettier --check . | tee prettier-report.txt`
27+
Astro: `astro check | tee astro-report.txt`
2428
required: false
2529
default: "lint:ci"
2630
report-file:

actions/test/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ inputs:
2121
npm/pnpm/Yarn script command to run for testing.
2222
This should be a script defined in your `package.json`.
2323
The command should generate coverage report files in a standard format (Cobertura XML, lcov, etc.).
24+
25+
Vitest: `vitest run --reporter=default --reporter=junit --outputFile=junit.xml --coverage.enabled --coverage.reporter=lcov --coverage.reporter=text`
26+
Jest: `jest --ci --reporters=default --reporters=jest-junit --coverage`
2427
required: false
2528
default: "test:ci"
2629
coverage:

0 commit comments

Comments
 (0)