Commit b12c1b0
authored
test: run functions-discover test on Node 24 (#10474)
* test: run functions-discover test on Node 24
### Description
The test:functions-discover test was failing on Node 20 because the latest pnpm requires Node 22+ (due to node:sqlite). This PR updates the CI workflow to run this specific test on Node 24 instead.
### Scenarios Tested
- Verified that the workflow file syntax is correct.
- Verified that run.sh is restored to use the latest pnpm.
### Sample Commands
npm run test:functions-discover
* test: allow built dependencies in pnpm fixture
### Description
Newer versions of pnpm require explicit approval for build scripts. This PR adds onlyBuiltDependencies to the pnpm fixture's package.json to allow @firebase/util and protobufjs to run their build scripts.
### Scenarios Tested
- Verified that the fixture package.json was updated.
* test: ignore scripts in pnpm fixture install
### Description
Adding onlyBuiltDependencies to package.json didn't resolve the ERR_PNPM_IGNORED_BUILDS error in CI. This PR switches to using pnpm install --ignore-scripts in the fixture's install script to bypass the issue entirely, as the test likely does not need the build scripts to run.
### Scenarios Tested
- Verified that the fixture install.sh was updated.1 parent dd02603 commit b12c1b0
3 files changed
Lines changed: 13 additions & 3 deletions
File tree
- .github/workflows
- scripts/functions-discover-tests/fixtures/pnpm
- functions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
276 | 278 | | |
277 | 279 | | |
278 | 280 | | |
279 | | - | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
0 commit comments