File tree 2 files changed +25
-3
lines changed
2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 51
51
run : task --silent npm:validate
52
52
53
53
check-sync :
54
+ name : check-sync (${{ matrix.project.path }})
54
55
runs-on : ubuntu-latest
55
56
57
+ strategy :
58
+ fail-fast : false
59
+ matrix :
60
+ project :
61
+ - path : .
62
+
56
63
steps :
57
64
- name : Checkout repository
58
65
uses : actions/checkout@v4
69
76
version : 3.x
70
77
71
78
- name : Install npm dependencies
72
- run : task npm:install-deps
79
+ run : |
80
+ task \
81
+ npm:install-deps \
82
+ PROJECT_PATH="${{ matrix.project.path }}"
73
83
74
84
- name : Check package-lock.json
75
- run : git diff --color --exit-code package-lock.json
85
+ run : |
86
+ git \
87
+ diff \
88
+ --color \
89
+ --exit-code \
90
+ "${{ matrix.project.path }}/package-lock.json"
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ includes:
5
5
dist : ./DistTasks.yml
6
6
7
7
vars :
8
+ # Path of the primary npm-managed project:
9
+ DEFAULT_NPM_PROJECT_PATH : ./
8
10
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
9
11
PROJECT_NAME : " arduinoOTA"
10
12
DIST_DIR : " dist"
@@ -239,7 +241,12 @@ tasks:
239
241
240
242
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/npm-task/Taskfile.yml
241
243
npm:install-deps :
242
- desc : Install dependencies managed by npm
244
+ desc : |
245
+ Install dependencies managed by npm.
246
+ Environment variable parameters:
247
+ PROJECT_PATH: Path of the npm-managed project (default: {{.DEFAULT_NPM_PROJECT_PATH}}).
248
+ dir : |
249
+ "{{default .DEFAULT_NPM_PROJECT_PATH .PROJECT_PATH}}"
243
250
cmds :
244
251
- npm install
245
252
You can’t perform that action at this time.
0 commit comments