🔧 Migrate from npm to Bun (#2097)
This commit is contained in:
16
.github/workflows/playwright.yml
vendored
16
.github/workflows/playwright.yml
vendored
@@ -48,9 +48,7 @@ jobs:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: lts/*
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.10'
|
||||
@@ -66,7 +64,7 @@ jobs:
|
||||
enable-cache: true
|
||||
- run: uv sync
|
||||
working-directory: backend
|
||||
- run: npm ci
|
||||
- run: bun ci
|
||||
working-directory: frontend
|
||||
- run: uv run bash scripts/generate-client.sh
|
||||
env:
|
||||
@@ -74,7 +72,7 @@ jobs:
|
||||
- run: docker compose build
|
||||
- run: docker compose down -v --remove-orphans
|
||||
- name: Run Playwright tests
|
||||
run: docker compose run --rm playwright npx playwright test --fail-on-flaky-tests --trace=retain-on-failure --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
|
||||
run: docker compose run --rm playwright bunx playwright test --fail-on-flaky-tests --trace=retain-on-failure --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
|
||||
- run: docker compose down -v --remove-orphans
|
||||
- name: Upload blob report to GitHub Actions Artifacts
|
||||
if: ${{ !cancelled() }}
|
||||
@@ -94,11 +92,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: bun ci
|
||||
- name: Download blob reports from GitHub Actions Artifacts
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
@@ -106,7 +102,7 @@ jobs:
|
||||
pattern: blob-report-*
|
||||
merge-multiple: true
|
||||
- name: Merge into HTML Report
|
||||
run: npx playwright merge-reports --reporter html ./all-blob-reports
|
||||
run: bunx playwright merge-reports --reporter html ./all-blob-reports
|
||||
working-directory: frontend
|
||||
- name: Upload HTML report
|
||||
uses: actions/upload-artifact@v6
|
||||
|
||||
Reference in New Issue
Block a user