Use PATH instead of sudo to install bun for testing (#2460)

This commit is contained in:
Josh Soref
2023-03-23 00:21:57 -04:00
committed by GitHub
parent 31c2fea74a
commit 5fd406ca2f
4 changed files with 28 additions and 4 deletions

View File

@@ -174,6 +174,12 @@ jobs:
with:
name: bun-${{matrix.tag}}
path: ${{runner.temp}}/release
- id: shim-path
name: set path
run: |
stage_bin=$(mktemp -d)
echo "stage_bin=$stage_bin"
echo $stage_bin >> $GITHUB_PATH
- id: install
name: Install
run: |
@@ -181,7 +187,7 @@ jobs:
unzip bun-${{matrix.tag}}.zip
cd bun-${{matrix.tag}}
chmod +x bun
sudo mv bun /usr/local/bin/bun
mv bun $stage_bin/bun
bun --version
- id: test
name: Test (node runner)

View File

@@ -411,6 +411,12 @@ jobs:
with:
name: ${{matrix.tag}}
path: ${{runner.temp}}/release
- id: shim-path
name: set path
run: |
stage_bin=$(mktemp -d)
echo "stage_bin=$stage_bin"
echo $stage_bin >> $GITHUB_PATH
- id: install
name: Install
run: |
@@ -418,7 +424,7 @@ jobs:
unzip ${{matrix.tag}}.zip
cd ${{matrix.tag}}
chmod +x bun
sudo mv bun /usr/local/bin/bun
mv bun $stage_bin/bun
bun --version
- id: test
name: Test (node runner)

View File

@@ -415,6 +415,12 @@ jobs:
with:
name: ${{matrix.tag}}
path: ${{runner.temp}}/release
- id: shim-path
name: set path
run: |
stage_bin=$(mktemp -d)
echo "stage_bin=$stage_bin"
echo $stage_bin >> $GITHUB_PATH
- id: install
name: Install
run: |
@@ -422,7 +428,7 @@ jobs:
unzip ${{matrix.tag}}.zip
cd ${{matrix.tag}}
chmod +x bun
sudo mv bun /usr/local/bin/bun
mv bun $stage_bin/bun
bun --version
- id: test
name: Test (node runner)

View File

@@ -417,6 +417,12 @@ jobs:
with:
name: ${{matrix.tag}}
path: ${{runner.temp}}/release
- id: shim-path
name: set path
run: |
stage_bin=$(mktemp -d)
echo "stage_bin=$stage_bin"
echo $stage_bin >> $GITHUB_PATH
- id: install
name: Install
run: |
@@ -424,7 +430,7 @@ jobs:
unzip ${{matrix.tag}}.zip
cd ${{matrix.tag}}
chmod +x bun
sudo mv bun /usr/local/bin/bun
mv bun $stage_bin/bun
bun --version
- id: test
name: Test (node runner)