File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,36 @@ jobs:
573
573
shell : bash
574
574
working-directory : ${{ steps.tmp-dir.outputs.path }}
575
575
576
+ - name : Install pnpm
577
+ uses : pnpm/action-setup@v4
578
+ with :
579
+ version : 10
580
+
581
+ - name : Make test directory (pnpm)
582
+ id : tmp-dir-pnpm
583
+ shell : bash
584
+ run : |
585
+ if [[ "$RUNNER_OS" == "Windows" ]]; then
586
+ dir=$(powershell -Command "[System.IO.Path]::GetTempPath() + [System.Guid]::NewGuid().ToString()" | tr -d '\r')
587
+ mkdir -p "$dir"
588
+ else
589
+ dir=$(mktemp -d)
590
+ fi
591
+ echo "path=$dir" >> "$GITHUB_OUTPUT"
592
+ cp -r tests/package_tests/installation_test/* "$dir"
593
+
594
+ - name : Install ReScript package (pnpm)
595
+ run : |
596
+ COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
597
+ pnpm i "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}"
598
+ shell : bash
599
+ working-directory : ${{ steps.tmp-dir-pnpm.outputs.path }}
600
+
601
+ - name : Test installation (pnpm)
602
+ run : pnpm rescript -h && pnpm rescript legacy build && cat src/Test.res.js
603
+ shell : bash
604
+ working-directory : ${{ steps.tmp-dir-pnpm.outputs.path }}
605
+
576
606
- name : Install ReScript package in rewatch/testrepo
577
607
run : |
578
608
COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}"
You can’t perform that action at this time.
0 commit comments