Commit e530aaa
committed
CI: install yarn-berry on Windows runners via npm + .cmd wrapper
Previously the Windows matrix deliberately skipped Yarn Berry because
the Unix setup uses ln -sf / homebrew prefix dirs that don't
translate. The side effect was every test_yarnprovider.py test
that uses require_tool('yarn-berry') bailed out with
AssertionError: Could not resolve the globally installed yarn-berry
alias on PATH on Windows.
Add a Windows-specific Berry setup step that uses git-bash + npm:
- npm install --prefix %USERPROFILE%/yarn-berry @yarnpkg/cli-dist@4.13.0
- write a tiny yarn-berry.cmd wrapper that forwards to the
npm-installed yarn.cmd (no ln needed).
- stage the wrapper dir onto GITHUB_PATH so shutil.which finds it.
Matches the Unix behavior (yarn classic + Berry both on PATH) so the
yarnprovider Windows test suite can actually run.1 parent df47808 commit e530aaa
1 file changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
173 | 172 | | |
174 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
175 | 191 | | |
176 | 192 | | |
177 | 193 | | |
| |||
0 commit comments