Skip to content

Commit baca6eb

Browse files
committed
🔧 Migrate from npm to bun
1 parent ab7c28c commit baca6eb

File tree

6 files changed

+939
-6748
lines changed

6 files changed

+939
-6748
lines changed

.github/workflows/generate-client.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
with:
2121
ref: ${{ github.head_ref }}
2222
token: ${{ secrets.FULL_STACK_FASTAPI_TEMPLATE_REPO_TOKEN }}
23-
- uses: actions/setup-node@v6
24-
with:
25-
node-version: lts/*
23+
- uses: oven-sh/setup-bun@v2
2624
- uses: actions/setup-python@v6
2725
with:
2826
python-version: "3.10"
@@ -32,7 +30,7 @@ jobs:
3230
version: "0.4.15"
3331
enable-cache: true
3432
- name: Install dependencies
35-
run: npm ci
33+
run: bun ci
3634
- run: uv sync
3735
working-directory: backend
3836
- run: uv run bash scripts/generate-client.sh

.github/workflows/playwright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- run: docker compose build
7575
- run: docker compose down -v --remove-orphans
7676
- name: Run Playwright tests
77-
run: docker compose run --rm playwright npx playwright test --fail-on-flaky-tests --trace=retain-on-failure --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
77+
run: docker compose run --rm playwright bunx playwright test --fail-on-flaky-tests --trace=retain-on-failure --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
7878
- run: docker compose down -v --remove-orphans
7979
- name: Upload blob report to GitHub Actions Artifacts
8080
if: ${{ !cancelled() }}
@@ -106,7 +106,7 @@ jobs:
106106
pattern: blob-report-*
107107
merge-multiple: true
108108
- name: Merge into HTML Report
109-
run: npx playwright merge-reports --reporter html ./all-blob-reports
109+
run: bunx playwright merge-reports --reporter html ./all-blob-reports
110110
working-directory: frontend
111111
- name: Upload HTML report
112112
uses: actions/upload-artifact@v6

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ jobs:
3737
# To be able to commit it needs the head branch of the PR, the remote one
3838
ref: ${{ github.event.pull_request.head.sha }}
3939
fetch-depth: 0
40-
- uses: actions/setup-node@v6
41-
with:
42-
node-version: lts/*
40+
- uses: oven-sh/setup-bun@v2
4341
- name: Set up Python
4442
uses: actions/setup-python@v6
4543
with:
@@ -54,7 +52,7 @@ jobs:
5452
- name: Install backend dependencies
5553
run: uv sync --all-packages
5654
- name: Install frontend dependencies
57-
run: npm ci
55+
run: bun ci
5856
- name: Run prek - pre-commit
5957
id: precommit
6058
run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)