Skip to content

fix: relax CSP to allow SvelteKit bootstrap and Cloudflare edge scripts #5

fix: relax CSP to allow SvelteKit bootstrap and Cloudflare edge scripts

fix: relax CSP to allow SvelteKit bootstrap and Cloudflare edge scripts #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- 'dashboard/**'
- '.github/workflows/ci.yml'
pull_request:
paths:
- 'dashboard/**'
- '.github/workflows/ci.yml'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
permissions:
contents: read
jobs:
test-e2e:
name: Playwright Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: dashboard
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '22'
cache: npm
cache-dependency-path: dashboard/package-lock.json
- name: Install dashboard dependencies
run: npm ci
- name: Cache Playwright browsers
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('dashboard/package-lock.json') }}
- name: Install Playwright browsers and OS dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Install Playwright OS dependencies only
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium
- name: Run Playwright tests
run: npx playwright test
- name: Upload Playwright report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() }}
with:
name: playwright-report
path: dashboard/playwright-report/
retention-days: 30