From 9be459b52264ccc2d47ff4809d73d37a9d28db2a Mon Sep 17 00:00:00 2001 From: Ivan Rezchikov Date: Tue, 15 Sep 2026 20:11:57 +0300 Subject: [PATCH] ci: migrate to bun --- .gitea/workflows/deploy.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index fce5b39..11563ec 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,18 +25,24 @@ jobs: lint-frontend: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + + - name: Restore Bun cache + uses: actions/cache@v4 + with: + path: ~/.bun/install/cache + key: ${{ runner.os }}-bun-${{ hashFiles('kotosoft-id-frontend/bun.lock') }} + - name: Lint frontend run: | - docker run --rm \ - -v "$PWD/kotosoft-id-frontend:/app" \ - -w /app \ - node:20-alpine \ - sh -c 'npm install && npm run lint' + cd kotosoft-id-frontend + bun install + bun run lint build-backend: runs-on: ubuntu-latest