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:
512512 with :
513513 node-version-file : .nvmrc
514514
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+
515528 - name : Download artifacts
516529 uses : actions/download-artifact@v4
517530 with :
518531 name : npm-packages
519- path : packages/test
532+ path : ${{ steps.tmp-dir.outputs.path }}
520533
521534 - name : Install ReScript package
522535 run : |
523536 npm i --ignore-scripts --no-audit \
524537 rescript-${{ needs.package.outputs.rescript_version }}.tgz
525538 shell : bash
526- working-directory : packages/test
539+ working-directory : ${{ steps.tmp-dir.outputs.path }}
527540
528541 - name : Test installation
529542 run : npx rescript -h && npx rescript build && cat src/Test.bs.js
530543 shell : bash
531- working-directory : packages/test
544+ working-directory : ${{ steps.tmp-dir.outputs.path }}
532545
533546 publish :
534547 needs : [package, installationTest]
You can’t perform that action at this time.
0 commit comments