70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches: [main, develop, "feature/*"]
|
|
pull_request:
|
|
branches: [main, develop]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Svelte Checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'yarn'
|
|
|
|
- name: Install
|
|
run: yarn install --frozen-lockfile --prefer-offline
|
|
|
|
- name: Type Check
|
|
run: yarn svelte-check --threshold warning
|
|
|
|
- name: Lint
|
|
run: yarn oxlint .
|
|
|
|
# e2e-tests:
|
|
# name: E2E Tests (Playwright)
|
|
# 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: 'yarn'
|
|
#
|
|
# - name: Install dependencies
|
|
# run: yarn install --frozen-lockfile
|
|
#
|
|
# - name: Install Playwright browsers
|
|
# run: yarn playwright install --with-deps
|
|
#
|
|
# - name: Run Playwright tests
|
|
# run: yarn test:e2e
|
|
#
|
|
# - name: Upload Playwright report
|
|
# if: always()
|
|
# uses: actions/upload-artifact@v4
|
|
# with:
|
|
# name: playwright-report
|
|
# path: playwright-report/
|
|
# retention-days: 7
|
|
#
|
|
# - name: Upload Playwright screenshots (on failure)
|
|
# if: failure()
|
|
# uses: actions/upload-artifact@v4
|
|
# with:
|
|
# name: playwright-screenshots
|
|
# path: test-results/
|
|
# retention-days: 7
|
|
#
|
|
# Note: E2E tests are disabled until Playwright setup is complete.
|
|
# Uncomment this job section when Playwright tests are ready to run.
|