aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/run-test-manually.yml23
1 files changed, 21 insertions, 2 deletions
diff --git a/.github/workflows/run-test-manually.yml b/.github/workflows/run-test-manually.yml
index 80b533619..4790ba61d 100644
--- a/.github/workflows/run-test-manually.yml
+++ b/.github/workflows/run-test-manually.yml
@@ -9,6 +9,10 @@ on:
required: true
default: "canary"
type: string
+ artifact:
+ description: "Artifact"
+ required: false
+ type: string
use_bun:
description: "Use Bun?"
required: true
@@ -31,12 +35,27 @@ jobs:
uses: actions/checkout@v3
with:
submodules: false
- - id: install
- name: Install
+ - id: install-npm
+ name: Install (npm)
+ if: ${{github.event.inputs.artifact == ''}}
run: |
npm install @oven/bun-${{matrix.tag}}@${{github.event.inputs.version}}
chmod +x node_modules/@oven/bun-${{matrix.tag}}/bin/bun
sudo cp node_modules/@oven/bun-${{matrix.tag}}/bin/bun /usr/bin/bun
+ - id: download-artifact
+ name: Download (artifact)
+ if: ${{github.event.inputs.artifact != ''}}
+ uses: actions/download-artifact@v2
+ with:
+ name: ${{github.event.inputs.artifact}}
+ path: ${{runner.temp}}/bun.zip
+ - id: install-artifact
+ name: Install (artifact)
+ if: ${{github.event.inputs.artifact != ''}}
+ run: |
+ unzip ${{runner.temp}}/bun.zip -d ${{runner.temp}}
+ chmod +x ${{runner.temp}}/bun
+ sudo cp ${{runner.temp}}/bun /usr/bin/bun
- id: test
name: Test
if: ${{github.event.inputs.use_bun == 'true'}}