Skip to content

Add comprehensive testing infrastructure #5

Add comprehensive testing infrastructure

Add comprehensive testing infrastructure #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- name: Lint check
run: npm run lint:check
- name: Format check
run: npm run format:check
- name: Unit tests with coverage
run: npx vitest run --coverage
- name: CRAP score analysis
run: node scripts/crap-check.js
- name: Build
run: npm run build
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Acceptance tests
env:
JELLYFIN_SERVER_URL: ${{ secrets.JELLYFIN_SERVER_URL }}
JELLYFIN_API_KEY: ${{ secrets.JELLYFIN_API_KEY }}
JELLYFIN_USERNAME: ${{ secrets.JELLYFIN_USERNAME }}
run: npm run test:acceptance