File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -506,33 +506,36 @@ jobs:
506
506
steps :
507
507
- name : Checkout
508
508
uses : actions/checkout@v4
509
- with :
510
- sparse-checkout : |
511
- .nvmrc
512
- packages/test
513
509
514
510
- name : Use Node.js
515
511
uses : actions/setup-node@v4
516
512
with :
517
513
node-version-file : .nvmrc
518
514
515
+ - name : Make test directory
516
+ id : tmp-dir
517
+ shell : bash
518
+ run : |
519
+ dir=$(mktemp -d)
520
+ echo "path=$dir" >> "$GITHUB_OUTPUT"
521
+
519
522
- name : Download artifacts
520
523
uses : actions/download-artifact@v4
521
524
with :
522
525
name : npm-packages
523
- path : packages/test
526
+ path : ${{ steps.tmp-dir.outputs.path }}
524
527
525
528
- name : Install ReScript package
526
529
run : |
527
530
npm i --ignore-scripts --no-audit \
528
531
rescript-${{ needs.package.outputs.rescript_version }}.tgz
529
532
shell : bash
530
- working-directory : packages/test
533
+ working-directory : ${{ steps.tmp-dir.outputs.path }}
531
534
532
535
- name : Test installation
533
536
run : npx rescript -h && npx rescript build && cat src/Test.bs.js
534
537
shell : bash
535
- working-directory : packages/test
538
+ working-directory : ${{ steps.tmp-dir.outputs.path }}
536
539
537
540
publish :
538
541
needs : [package, installationTest]
You can’t perform that action at this time.
0 commit comments