From 540ed6f4d70c1b86838a177e7ab2dec6adac655d Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Sun, 4 May 2025 14:50:45 +0200 Subject: [PATCH] try bun instead of turbo prune and yarn install --- .github/workflows/test_backend.yml | 26 +++++++++----------------- backend/turbo.json | 3 +++ 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index d62477811..8d94de276 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -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' diff --git a/backend/turbo.json b/backend/turbo.json index f519af680..7427fa978 100644 --- a/backend/turbo.json +++ b/backend/turbo.json @@ -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"] },