♻️ refactor!: massive refactor

This commit is contained in:
2026-05-31 03:04:30 +07:00
parent c1f12c7201
commit df3c944547
86 changed files with 3691 additions and 1129 deletions
+38 -5
View File
@@ -15,9 +15,42 @@ env:
NEXT_TELEMETRY_DISABLED: "1"
jobs:
test:
name: Run tests
validate:
name: ${{ matrix.check.name }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
check:
- name: Lint
command: bun run lint
- name: Typecheck
command: bun run typecheck
- name: Tests
command: bun run test
- name: Format
command: bun run format
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.38
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run ${{ matrix.check.name }}
run: ${{ matrix.check.command }}
build:
name: Build
runs-on: ubuntu-latest
needs: validate
permissions:
contents: read
steps:
@@ -32,13 +65,13 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: bun run test
- name: Build
run: bun run build
docker:
name: Build and publish Docker images - ${{ matrix.app }}
runs-on: ubuntu-latest
needs: test
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
strategy:
matrix: