Files
vibing/.gitea/workflows/frontend-ci.yml
Jarno Kiesiläinen 928f65f9c5
All checks were successful
Frontend CI / Lint and Build Frontend (pull_request) Successful in 1m25s
build: downgraded actions for compatibility
2025-08-02 16:43:45 +03:00

46 lines
1.0 KiB
YAML

name: Frontend CI
on:
push:
branches: [ main, develop ]
paths:
- 'frontend/**'
pull_request:
branches: [ main, develop ]
paths:
- 'frontend/**'
jobs:
lint-and-build:
name: Lint and Build Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: frontend
run: npm ci
- name: Run ESLint
working-directory: frontend
run: npm run lint
- name: Build project
working-directory: frontend
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: frontend-build
path: frontend/dist
retention-days: 7