chore: consolidate npm to bun in CI workflows
- Update justfile to use bun instead of npm for all commands - Fix broken test glob patterns in package.json and workflows - Fix npm run test:acceptance:cucumber:prod to use bun - Update pr.yml and release.yml unit test commands to use correct path format - Run 157 unit tests (was only running ~2 due to broken glob)
This commit is contained in:
@@ -28,7 +28,7 @@ jobs:
|
||||
DATABASE_URL: postgresql://user:pass@localhost:5432/dummy
|
||||
|
||||
- name: Run unit tests
|
||||
run: bun test src/__tests__/unit/ src/__tests__/*.test.tsx src/__tests__/auth-simple.test.ts
|
||||
run: bun test src/__tests__/unit/ 'src/__tests__/*.test.tsx' src/__tests__/auth-simple.test.ts
|
||||
|
||||
e2e-tests:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
DATABASE_URL: postgresql://user:pass@localhost:5432/dummy
|
||||
|
||||
- name: Run E2E tests
|
||||
run: npm run test:acceptance:cucumber:prod
|
||||
run: bun run test:acceptance:cucumber:prod
|
||||
env:
|
||||
DATABASE_URL: postgresql://euchre_camp:${{ secrets.DB_PASSWORD }}@dhg.lol:5432/euchre_camp_dev
|
||||
DATABASE_PROVIDER: postgresql
|
||||
|
||||
@@ -122,7 +122,7 @@ jobs:
|
||||
docker run --rm \
|
||||
-e DATABASE_URL="postgresql://user:pass@localhost:5432/dummy" \
|
||||
${{ env.IMAGE_NAME }}-test:${{ steps.version.outputs.new_version }} \
|
||||
bun test 'src/__tests__/unit/**' 'src/__tests__/*.test.tsx' 'src/__tests__/auth-simple.test.ts'
|
||||
bun test src/__tests__/unit/ 'src/__tests__/*.test.tsx' src/__tests__/auth-simple.test.ts
|
||||
|
||||
- name: Build production image
|
||||
if: steps.commit.outputs.committed == 'true'
|
||||
|
||||
Reference in New Issue
Block a user