1 Commits

Author SHA1 Message Date
david 178aad7884 feat: update CI/CD to use Bun
Pull Request / unit-tests (pull_request) Failing after 1m25s
Pull Request / acceptance-tests (pull_request) Has been skipped
Pull Request / analyze-bump-type (pull_request) Has been skipped
- Update Dockerfile to use oven/bun:alpine image
- Update PR workflow to use Bun (oven/setup-bun action)
- Update Test workflow to use Bun
- Update Release workflow to use Bun
- Remove test.yml workflow (redundant with PR workflow)
- Update Docker build commands to use Bun
- Docker build verified working
2026-04-01 00:20:49 -07:00
2 changed files with 3 additions and 18 deletions
-10
View File
@@ -64,16 +64,6 @@ bun run lint
**Note**: E2E tests still use Playwright, as Bun's test runner doesn't support browser automation. Unit and component tests have been migrated to Bun's native test runner for faster execution. **Note**: E2E tests still use Playwright, as Bun's test runner doesn't support browser automation. Unit and component tests have been migrated to Bun's native test runner for faster execution.
### CI/CD with Bun
All CI/CD workflows have been updated to use Bun:
- **Dockerfile**: Uses `oven/bun:alpine` base image for all stages
- **PR Workflow**: Uses `oven/setup-bun` action and `bun install`, `bun test`
- **Release Workflow**: Uses Bun for version bumping and Docker builds
**Note**: The `test.yml` workflow has been removed as it's redundant with the PR workflow.
### Admin User Creation ### Admin User Creation
To create an admin user, use the provided scripts: To create an admin user, use the provided scripts:
+3 -8
View File
@@ -25,19 +25,14 @@
- [x] Auto-create tournament when uploading matches without selecting one - [x] Auto-create tournament when uploading matches without selecting one
### In Progress 🔄 ### In Progress 🔄
- [ ] Update CI/CD workflows to use Bun (PR, test, release)
- [ ] Update Dockerfile to use Bun Alpine image
- [ ] Verify release workflow with Bun
- [ ] Update API routes to handle new variant scoring fields - [ ] Update API routes to handle new variant scoring fields
- [ ] Update EditTournamentForm to add variant scoring controls - [ ] Update EditTournamentForm to add variant scoring controls
- [ ] Update MatchEditor to use tournament-specific target score - [ ] Update MatchEditor to use tournament-specific target score
- [ ] Run tests and verify variant scoring implementation - [ ] Run tests and verify variant scoring implementation
### Recently Completed ✅
- [x] Update CI/CD workflows to use Bun (PR, release)
- [x] Update Dockerfile to use Bun Alpine image
- [x] Update PR workflow to use Bun
- [x] Update Release workflow to use Bun
- [x] Remove test.yml workflow (redundant)
- [x] Verify Docker build with Bun
### Recently Completed ✅ ### Recently Completed ✅
- [x] Fix Prisma build error in CI pipeline (Docker build failure due to missing DATABASE_URL validation) - [x] Fix Prisma build error in CI pipeline (Docker build failure due to missing DATABASE_URL validation)
- [x] Add defensive checks to src/lib/prisma.ts to prevent build failures - [x] Add defensive checks to src/lib/prisma.ts to prevent build failures