Skip to content

Commit

Permalink
Fix github workflow for bun
Browse files Browse the repository at this point in the history
  • Loading branch information
HarleyZapata-Rurall committed Jun 3, 2024
1 parent f90e2b3 commit b5bc0fc
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/bunts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,23 @@ jobs:
matrix:
node-version: [21.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
shell: bash

- name: Add Bun to PATH
run: |
echo 'export BUN_INSTALL="$HOME/.bun"' >> $GITHUB_ENV
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $GITHUB_ENV
shell: bash
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # Puedes especificar una versión específica si lo prefieres

- name: Install dependencies
run: |
bun install
- name: Run build
run: |
bun run build --if-present
run: bun install

# Descomentar los siguientes pasos si tienes lint y tests configurados
# Descomentar si tienes configuración para lint
# - name: Run lint
# run: |
# bun lint
# run: bun lint

- name: Run build
run: bun run build --if-present

# Descomentar si tienes configuración para tests
# - name: Run tests
# run: |
# bun test
# run: bun test

0 comments on commit b5bc0fc

Please sign in to comment.