File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -512,23 +512,36 @@ jobs:
512
512
with :
513
513
node-version-file : .nvmrc
514
514
515
+ - name : Make test directory
516
+ id : tmp-dir
517
+ shell : bash
518
+ run : |
519
+ if [[ "$RUNNER_OS" == "Windows" ]]; then
520
+ dir=$(powershell -Command "[System.IO.Path]::GetTempPath() + [System.Guid]::NewGuid().ToString()" | tr -d '\r')
521
+ mkdir -p "$dir"
522
+ else
523
+ dir=$(mktemp -d)
524
+ fi
525
+ echo "path=$dir" >> "$GITHUB_OUTPUT"
526
+ cp -r packages/test/* "$dir"
527
+
515
528
- name : Download artifacts
516
529
uses : actions/download-artifact@v4
517
530
with :
518
531
name : npm-packages
519
- path : packages/test
532
+ path : ${{ steps.tmp-dir.outputs.path }}
520
533
521
534
- name : Install ReScript package
522
535
run : |
523
536
npm i --ignore-scripts --no-audit \
524
537
rescript-${{ needs.package.outputs.rescript_version }}.tgz
525
538
shell : bash
526
- working-directory : packages/test
539
+ working-directory : ${{ steps.tmp-dir.outputs.path }}
527
540
528
541
- name : Test installation
529
542
run : npx rescript -h && npx rescript build && cat src/Test.bs.js
530
543
shell : bash
531
- working-directory : packages/test
544
+ working-directory : ${{ steps.tmp-dir.outputs.path }}
532
545
533
546
publish :
534
547
needs : [package, installationTest]
You can’t perform that action at this time.
0 commit comments