try bun instead of turbo prune and yarn install

This commit is contained in:
einhornimmond 2025-05-04 14:50:45 +02:00
parent 35d58042d1
commit 540ed6f4d7
2 changed files with 12 additions and 17 deletions

View File

@ -47,25 +47,22 @@ jobs:
node-version: '18.20.7'
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: docker-compose mariadb
run: docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
- name: Install turbo
run: yarn global add turbo@^2
- name: Prune backend with turbos help
run: turbo prune backend
- name: install bun
uses: oven-sh/setup-bun@v2
- name: install dependencies
run: cd out && yarn install --frozen-lockfile --production=false
run: bun install --frozen-lockfile --production=false
- name: Wait for MariaDB to be ready
run: docker run --rm --network gradido_internal-net busybox sh -c 'until nc -z mariadb 3306; do echo waiting for db; sleep 1; done;'
- name: Backend | Unit tests
run: cd out && turbo backend#test backend#build
run: bun turbo backend#test backend#build
typecheck:
if: needs.files-changed.outputs.backend == 'true'
@ -81,19 +78,14 @@ jobs:
with:
node-version: '18.20.7'
- name: Install turbo
run: yarn global add turbo@^2
- name: Prune backend with turbos help
run: turbo prune backend
- name: install bun
uses: oven-sh/setup-bun@v2
- name: install dependencies
run: |
cd out && yarn install --frozen-lockfile --production=true
cd backend && yarn add typescript
run: bun install --frozen-lockfile --production=true
- name: Backend | Typecheck
run: cd out && turbo backend#typecheck
run: bun turbo backend#typecheck
locales:
if: needs.files-changed.outputs.backend == 'true'

View File

@ -9,6 +9,9 @@
"lint": {
"dependsOn": ["locales", "database#build"]
},
"typecheck": {
"dependsOn": ["database#build", "config-schema#build"]
},
"test": {
"dependsOn": ["database#up:backend_test", "config-schema#build", "database#build"]
},