feat: add Frontend CI workflow for linting and building the application
Some checks failed
Frontend CI / lint (push) Failing after 42s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-07-01 14:23:14 +02:00
parent 961492309a
commit 65e6e58b44

87
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,87 @@
name: Frontend CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
# - name: Setup Bun
# uses: oven-sh/setup-bun@v2
# with:
# bun-version: latest
# - name: Cache dependencies
# uses: actions/cache@v4
# with:
# path: ~/.bun/install/cache
# key: ${{ runner.os }}-bun-${{ hashFiles('frontend/bun.lockb') }}
# restore-keys: |
# ${{ runner.os }}-bun-
# - name: Install dependencies
# run: |
# cd frontend
# bun install
# - name: Run ESLint
# run: |
# cd frontend
# bun run lint
# - name: Run TypeScript check
# run: |
# cd frontend
# bunx tsc -b --noEmit
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
# - name: Setup Bun
# uses: oven-sh/setup-bun@v2
# with:
# bun-version: latest
# - name: Cache dependencies
# uses: actions/cache@v4
# with:
# path: ~/.bun/install/cache
# key: ${{ runner.os }}-bun-${{ hashFiles('frontend/bun.lockb') }}
# restore-keys: |
# ${{ runner.os }}-bun-
# - name: Install dependencies
# run: |
# cd frontend
# bun install
# - name: Build application
# run: |
# cd frontend
# bun run build
# - name: Upload build artifacts
# uses: actions/upload-artifact@v4
# with:
# name: frontend-dist
# path: frontend/dist/
# retention-days: 7