Update GitHub CI piplines

This commit is contained in:
IgorVolochay
2026-09-01 14:55:02 +03:00
parent 008dd1c29e
commit bff869fa9d
4 changed files with 360 additions and 23 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Frontend CI
on:
workflow_dispatch:
push:
paths:
- 'frontend/**'
branches:
- frontend
- prebuild
- main
pull_request:
paths:
- 'frontend/**'
branches:
- frontend
- prebuild
- main
jobs:
frontend-test-build:
name: React Test & Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Run frontend tests
working-directory: ./frontend
run: npm test -- --watchAll=false
- name: Build React app
working-directory: ./frontend
run: npm run build