Skip to content

fix multiple smaller things in astro #73

fix multiple smaller things in astro

fix multiple smaller things in astro #73

Workflow file for this run

name: Astro Code Quality
on:
pull_request:
paths:
- 'astro/**'
workflow_dispatch:
concurrency:
group: astro-checks-${{ github.head_ref }}
cancel-in-progress: true
defaults:
run:
working-directory: astro
jobs:
lint:
name: Lint & Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: astro/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Check formatting
run: npm run format:check
test:
name: Playwright Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: astro/package-lock.json
- name: Install dependencies
run: npm ci
- name: Preprocess content
run: npm run preprocess
- name: Generate search index
run: npm run search-index
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm run test
- name: Upload test artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: astro/playwright-report/
retention-days: 30