|
56 | 56 | Whether to enable linting. |
57 | 57 | Set to `null` or empty to disable. |
58 | 58 | Accepts a JSON object for lint options. See [lint action](../actions/lint/README.md). |
59 | | -
|
60 | | - Supported options: |
61 | | - - `command`: NPM script to run (default: "lint:ci"). The command should generate lint report files. |
62 | | - - `report-file`: Path to lint report file for annotations. |
63 | | -
|
64 | | - Example: |
65 | | - ```json |
66 | | - { |
67 | | - "command": "lint:ci", |
68 | | - "report-file": "reports/eslint.json" |
69 | | - } |
70 | | - ``` |
71 | 59 | type: string |
72 | 60 | required: false |
73 | 61 | default: "true" |
|
86 | 74 | Whether to enable testing. |
87 | 75 | Set to `null` or empty to disable. |
88 | 76 | Accepts a JSON object for test options. See [test action](../actions/test/README.md). |
89 | | -
|
90 | | - Supported options: |
91 | | - - `command`: NPM script to run (default: "test:ci"). The command should generate coverage report files. |
92 | | - - `coverage`: Coverage reporter ("github", "codecov", or "" for none). |
93 | | - - `coverage-files`: Path to coverage files for reporting. |
94 | | -
|
95 | | - Example: |
96 | | - ```json |
97 | | - { |
98 | | - "command": "test:ci", |
99 | | - "coverage": "github", |
100 | | - "coverage-files": "coverage/cobertura-coverage.xml" |
101 | | - } |
102 | | - ``` |
103 | 77 | type: string |
104 | 78 | required: false |
105 | 79 | default: "true" |
@@ -285,6 +259,7 @@ jobs: |
285 | 259 | credentials: ${{ fromJSON(needs.prepare.outputs.container-username && format('{{"username":{0},"password":{1}}}',toJSON(needs.prepare.outputs.container-username),toJSON(secrets.container-password)) || '{}') }} |
286 | 260 | permissions: |
287 | 261 | contents: read |
| 262 | + packages: read |
288 | 263 | # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659 |
289 | 264 | id-token: write |
290 | 265 | outputs: |
@@ -453,17 +428,6 @@ jobs: |
453 | 428 | command: ${{ steps.preparel-lint-options.outputs.command }} |
454 | 429 | report-file: ${{ steps.preparel-lint-options.outputs.report-file }} |
455 | 430 |
|
456 | | - - name: 🔄 Rewrite lint report paths (container mode) |
457 | | - if: always() && needs.prepare.outputs.container-image |
458 | | - uses: ./self-workflow/actions/rewrite-report-paths |
459 | | - with: |
460 | | - working-directory: ${{ inputs.working-directory }} |
461 | | - report-files: | |
462 | | - **/*eslint*.json |
463 | | - **/*checkstyle*.xml |
464 | | - reports/**/*.json |
465 | | - reports/**/*.xml |
466 | | -
|
467 | 431 | build: |
468 | 432 | name: 🏗️ Build |
469 | 433 | if: inputs.checks == true |
@@ -583,14 +547,3 @@ jobs: |
583 | 547 | coverage: ${{ steps.prepare-test-options.outputs.coverage }} |
584 | 548 | coverage-files: ${{ steps.prepare-test-options.outputs.coverage-files }} |
585 | 549 | github-token: ${{ github.token }} |
586 | | - |
587 | | - - name: 🔄 Rewrite coverage report paths (container mode) |
588 | | - if: always() && needs.prepare.outputs.container-image |
589 | | - uses: ./self-workflow/actions/rewrite-report-paths |
590 | | - with: |
591 | | - working-directory: ${{ inputs.working-directory }} |
592 | | - report-files: | |
593 | | - coverage/**/*.xml |
594 | | - coverage/**/*.info |
595 | | - coverage/**/*.json |
596 | | - test-results/**/*.xml |
0 commit comments