Publish Fast Tabler Docker image / Test before build (push) Failing after 7m0s
Publish Fast Tabler Docker image / Build and push image (push) Has been skipped
Test and Lint / Backend tests (push) Successful in 9m38s
Test and Lint / Frontend lint, test, build (push) Failing after 5m38s
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
# Запуск линта, тестов и проверки сборки перед деплоем
|
|
name: Test and Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- tabler
|
|
- v3
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- tabler
|
|
- v3
|
|
|
|
jobs:
|
|
backend:
|
|
name: Backend tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install backend dependencies
|
|
run: npm ci
|
|
working-directory: backend
|
|
|
|
- name: Run backend tests
|
|
run: npm test
|
|
working-directory: backend
|
|
|
|
frontend:
|
|
name: Frontend lint, test, build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install frontend dependencies
|
|
run: npm ci
|
|
working-directory: frontend
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
working-directory: frontend
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
working-directory: frontend
|
|
|
|
- name: Run frontend tests
|
|
run: npm test
|
|
working-directory: frontend
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
working-directory: frontend
|