From be65b99b047cd221a7c4462f6e32afa9717c43dd Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Sun, 4 May 2025 10:43:58 +0200 Subject: [PATCH] finetuning workflows --- .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/test_e2e.yml | 3 ++- frontend/package.json | 1 - frontend/turbo.json | 3 --- 4 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..0a3179b26 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: Linting with biomejs + +on: push + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Biome + uses: biomejs/setup-biome@v2 + with: + version: latest + - name: Lint - Config-Schema + run: biome ci ./config-schema + - name: Lint - Backend + run: biome ci ./backend + - name: Lint - Frontend + run: biome ci ./frontend + - name: Lint - Admin + run: biome ci ./admin + - name: Lint - Database + run: biome ci ./database + - name: Lint - DHT Node + run: biome ci ./dht-node + - name: Lint - Federation + run: biome ci ./federation \ No newline at end of file diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index eeae17439..a0d442c5a 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -38,7 +38,8 @@ jobs: cd backend cp .env.test_e2e .env cd .. - bun turbo backend#build frontend#build + bun turbo backend#build + bun turbo frontend#build bun turbo backend#start frontend#start --env-mode=loose & - name: End-to-end tests | prepare diff --git a/frontend/package.json b/frontend/package.json index bbcf535da..38f709479 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "dev": "concurrently \"yarn watch-scss\" \"vite\"", - "prebuild": "yarn compile-scss", "build": "vite build", "start": "vite preview", "postbuild": "uname | grep -q Linux && find build -type f -regex '.*\\.\\(html\\|js\\|css\\|svg\\|json\\)' -exec gzip -9 -k {} + || echo 'Skip precompress on non-Linux'", diff --git a/frontend/turbo.json b/frontend/turbo.json index 4b0b2727c..13d3bc9f8 100644 --- a/frontend/turbo.json +++ b/frontend/turbo.json @@ -11,9 +11,6 @@ "cache": false, "persistent": true }, - "dev": { - "dependsOn": ["compile-scss"] - }, "build": { "dependsOn": ["compile-scss"] }