Skip to content

test: cover complete library user flow #46

test: cover complete library user flow

test: cover complete library user flow #46

Workflow file for this run

name: CI/CD
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Format, lint, test, build
runs-on: [self-hosted, linux, x64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Deploy to Apache (main only)
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: sudo rsync -a --delete dist/ /var/www/html/project1/