ci: merge lint/test/build into single job, add frontend tests
Some checks are pending
CI / ci (pull_request) Successful in 3m6s
CI / ci (push) Has started running

This commit is contained in:
Sergey Krylov 2026-06-18 06:39:06 +03:00
parent feaff2103e
commit b9ace3ed5e

View File

@ -9,46 +9,34 @@ env:
NODE_VERSION: 20 NODE_VERSION: 20
jobs: jobs:
lint: ci:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout repository' - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 'Setup dependencies' - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ env.NODE_VERSION }} node-version: ${{ env.NODE_VERSION }}
- run: npm ci - name: Install dependencies
- run: npm run lint run: npm ci
- run: npx prettier --check "**/*.{ts,tsx}"
test: - name: Lint
runs-on: ubuntu-latest run: npm run lint
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Setup dependencies' - name: Format check
uses: actions/setup-node@v4 run: npm run format:check
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm ci - name: Test backend
- run: npm run test:backend run: npm run test:backend
build: - name: Test frontend
runs-on: ubuntu-latest run: npm run test:frontend
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Setup dependencies' - name: Build backend
uses: actions/setup-node@v4 run: npm run build:backend
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm ci - name: Build frontend
- run: npm run build:backend run: npm run build:frontend
- run: npm run build:frontend