chore: migrate from node to bun #46

Merged
didavila merged 14 commits from test/bun into main 2026-03-25 10:14:24 +00:00
2 changed files with 34 additions and 2 deletions
Showing only changes of commit 94263d0329 - Show all commits

View File

@@ -12,11 +12,27 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache Bun binary
uses: actions/cache@v4
with:
path: ~/.bun
key: bun-v1.3.3-${{ runner.os }}
- name: Setup Bun - name: Setup Bun
run: | run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3" if ! [ -f "$HOME/.bun/bin/bun" ]; then
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3"
fi
echo "$HOME/.bun/bin" >> $GITHUB_PATH echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-deps-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-deps-
- name: Install dependencies - name: Install dependencies
run: bun install --frozen-lockfile run: bun install --frozen-lockfile

View File

@@ -12,9 +12,17 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Cache Bun binary
uses: actions/cache@v4
with:
path: ~/.bun
key: bun-v1.3.3-${{ runner.os }}
- name: Setup Bun - name: Setup Bun
run: | run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3" if ! [ -f "$HOME/.bun/bin/bun" ]; then
curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.3"
fi
echo "$HOME/.bun/bin" >> $GITHUB_PATH echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Set version from tag - name: Set version from tag
@@ -34,6 +42,14 @@ jobs:
env: env:
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-deps-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-deps-
- name: Install dependencies - name: Install dependencies
run: bun install --frozen-lockfile run: bun install --frozen-lockfile