finetuning workflows

This commit is contained in:
einhornimmond 2025-05-04 10:43:58 +02:00
parent ee7b35a154
commit 17637960e4
4 changed files with 30 additions and 5 deletions

28
.github/workflows/lint.yml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -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'",

View File

@ -11,9 +11,6 @@
"cache": false,
"persistent": true
},
"dev": {
"dependsOn": ["compile-scss"]
},
"build": {
"dependsOn": ["compile-scss"]
}