File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,15 @@ permissions:
3030
3131jobs :
3232 validate :
33+ name : validate (${{ matrix.project.path }})
3334 runs-on : ubuntu-latest
3435
36+ strategy :
37+ fail-fast : false
38+ matrix :
39+ project :
40+ - path : .
41+
3542 steps :
3643 - name : Checkout repository
3744 uses : actions/checkout@v4
4855 version : 3.x
4956
5057 - name : Validate package.json
51- run : task --silent npm:validate
58+ run : |
59+ task \
60+ --silent \
61+ npm:validate \
62+ PROJECT_PATH="${{ matrix.project.path }}"
5263
5364 check-sync :
5465 name : check-sync (${{ matrix.project.path }})
Original file line number Diff line number Diff line change @@ -252,7 +252,10 @@ tasks:
252252
253253 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-npm-task/Taskfile.yml
254254 npm:validate :
255- desc : Validate npm configuration files against their JSON schema
255+ desc : |
256+ Validate npm configuration files against their JSON schema.
257+ Environment variable parameters:
258+ PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
256259 vars :
257260 # Source: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.json
258261 SCHEMA_URL : https://json.schemastore.org/package.json
@@ -294,7 +297,8 @@ tasks:
294297 STYLELINTRC_SCHEMA_URL : https://json.schemastore.org/stylelintrc.json
295298 STYLELINTRC_SCHEMA_PATH :
296299 sh : task utility:mktemp-file TEMPLATE="stylelintrc-schema-XXXXXXXXXX.json"
297- INSTANCE_PATH : " package.json"
300+ INSTANCE_PATH : >-
301+ {{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}/package.json
298302 PROJECT_FOLDER :
299303 sh : pwd
300304 WORKING_FOLDER :
You can’t perform that action at this time.
0 commit comments