Skip to content

Commit

Permalink
Use different GitHub action to download Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Apr 18, 2024
1 parent 13f0188 commit cfce166
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ on:
pr-number:
type: string
required: true
workflow_dispatch:
inputs:
runs-on:
type: string
description: The runner used to run the tests
required: true
tag:
type: string
description: The tag of the build to use
required: true
pr-number:
type: string
description: The pull request from where to download Bun
required: true

jobs:
test:
Expand All @@ -45,16 +31,12 @@ jobs:
run: |
echo "${{ inputs.pr-number }}" > pr-number.txt
- name: Download Bun
uses: dawidd6/action-download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bun-${{ inputs.tag }}
path: bun
github_token: ${{ github.token }}
pr: ${{ inputs.pr-number }}
workflow_search: true
workflow_conclusion: "" # ignore conclusion
check_artifacts: true
search_artifacts: true
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- if: ${{ runner.os == 'Windows' }}
name: Setup Cygwin
uses: secondlife/setup-cygwin@v3
Expand All @@ -63,7 +45,7 @@ jobs:
- name: Setup Bun
shell: bash
run: |
unzip bun/bun-*.zip
unzip bun/bun-*/bun-*.zip
cd bun-*
pwd >> $GITHUB_PATH
- name: Setup Node.js
Expand Down

0 comments on commit cfce166

Please sign in to comment.