fix: use official Bun setup action in CI workflow (#131)

- Replace manual Bun installation with oven-sh/setup-bun@v2
- Fixes PATH issue where bun wasn't available in subsequent steps
- Ensures Bun is properly installed before running TypeScript validator

This fixes the issue where the TypeScript validator couldn't run because
Bun wasn't in the PATH. The official setup action handles this correctly.

Related: Fixes CI for PR #128
This commit is contained in:
Darren Hinde 2026-01-29 10:55:53 +00:00 committed by GitHub
parent 54fa50d17a
commit 13e8a27c10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,10 +113,12 @@ jobs:
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y jq sudo apt-get install -y jq
# Install Bun for TypeScript validator - name: Install Bun
curl -fsSL https://bun.sh/install | bash if: github.event.inputs.skip_validation != 'true'
echo "$HOME/.bun/bin" >> $GITHUB_PATH uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Make scripts executable - name: Make scripts executable
if: github.event.inputs.skip_validation != 'true' if: github.event.inputs.skip_validation != 'true'