Skip to content

Commit 512c586

Browse files
committed
Use relevant metadata file when determining framework dependency versions
These workflows support multiple projects in subfolders of the repository. The version of the frameworks (Go and Node.js) to use is determined from the content of the metadata files. Previously the workflow always used the file located in the root of the repository. The versioning data in that file won't necessarily be correct for the projects in subfolders, so the metadata for the individual project should be used instead.
1 parent 423a079 commit 512c586

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/check-go-task.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
- name: Install Go
111111
uses: actions/setup-go@v6
112112
with:
113-
go-version-file: go.mod
113+
go-version-file: ${{ matrix.module.path }}/go.mod
114114

115115
- name: Install Task
116116
uses: arduino/setup-task@v2
@@ -153,7 +153,7 @@ jobs:
153153
- name: Install Go
154154
uses: actions/setup-go@v6
155155
with:
156-
go-version-file: go.mod
156+
go-version-file: ${{ matrix.module.path }}/go.mod
157157

158158
- name: Install Task
159159
uses: arduino/setup-task@v2
@@ -196,7 +196,7 @@ jobs:
196196
- name: Install Go
197197
uses: actions/setup-go@v6
198198
with:
199-
go-version-file: go.mod
199+
go-version-file: ${{ matrix.module.path }}/go.mod
200200

201201
- name: Install Task
202202
uses: arduino/setup-task@v2
@@ -239,7 +239,7 @@ jobs:
239239
- name: Install Go
240240
uses: actions/setup-go@v6
241241
with:
242-
go-version-file: go.mod
242+
go-version-file: ${{ matrix.module.path }}/go.mod
243243

244244
- name: Install Task
245245
uses: arduino/setup-task@v2

.github/workflows/check-npm-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Setup Node.js
108108
uses: actions/setup-node@v5
109109
with:
110-
node-version-file: package.json
110+
node-version-file: "${{ matrix.project.path }}/package.json"
111111

112112
- name: Install Task
113113
uses: arduino/setup-task@v2

0 commit comments

Comments
 (0)