Skip to content

Bump astro from 6.0.4 to 6.0.8 #5

Bump astro from 6.0.4 to 6.0.8

Bump astro from 6.0.4 to 6.0.8 #5

Workflow file for this run

name: Unit & WCAG Tests
on:
pull_request:
workflow_call:
workflow_dispatch:
permissions:
contents: read
discussions: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: 'package.json'
cache: 'npm'
- uses: lowlydba/sustainable-npm@v2
- run: npm ci
- name: Unit tests
run: npm test
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}
- name: Install Playwright browsers and system deps (cache miss)
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Ensure Playwright Chromium is installed (cache hit)
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install chromium
- name: Fetch discussions
run: npm run fetch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Accessibility tests
run: npm run test:a11y