Skip to content

Merge pull request #121 from moollaza/feature/sveltekit-redesign #34

Merge pull request #121 from moollaza/feature/sveltekit-redesign

Merge pull request #121 from moollaza/feature/sveltekit-redesign #34

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: ["**"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality-checks:
name: Quality Checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
cache-dependency-path: "package-lock.json"
- run: npm ci
- run: npm run lint
- run: npm run check
build-and-test:
name: Build & E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
cache-dependency-path: "package-lock.json"
- run: npm ci
- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').packages['node_modules/@playwright/test'].version)")" >> $GITHUB_OUTPUT
- name: Cache playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}
- name: Install Playwright browsers
run: npx playwright install chromium
if: steps.playwright-cache.outputs.cache-hit != 'true'
- name: Install system dependencies
run: npx playwright install-deps chromium
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: npm test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: |
playwright-report/
test-results/
retention-days: 7