Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Validate swup.js.org

# End-to-end check: `swup validate` against the docs site,
# same as `npm run test:validate` in swup/docs

on:
push:
branches: [main, master, next]
pull_request:
workflow_dispatch:

jobs:
validate:
name: Validate swup.js.org
# Playwright 1.55 doesn't support ubuntu 26.04 (ubuntu-latest) yet
runs-on: ubuntu-24.04
timeout-minutes: 10

steps:
- name: Check out repo
uses: actions/checkout@v6

- name: Set up node
uses: actions/setup-node@v6
with:
node-version: 24

- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps chromium

- name: Validate swup.js.org
run: >-
./bin/run.js validate --parallel --sitemap=https://swup.js.org/sitemap.xml
8 changes: 3 additions & 5 deletions swup.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Mirrors swup.config.mjs in swup/docs
export default {
swup: {
animationSelector: '[class*="swup-transition-"]'
},
validate: {
url: 'https://swup.js.org',
limit: 10
animationSelector: '[class*="swup-transition-"]',
containers: ['#swup']
}
};
Loading