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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"ghcr.io/devcontainers/features/node:2": {
"version": "lts",
"pnpmVersion": "none",
"pnpmVersion": "12.23.0",
"nvmVersion": "none"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/test-website-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ jobs:
ruby-version: 3.3
bundler-cache: true # runs 'bundle install' and caches gems

- name: Install dependencies
# The repository has no package.json, so the step names its pnpm and Node.js.
- name: Setup pnpm and Node.js
uses: pnpm/setup@v3
with:
version: 12.23.0
runtime: node@lts
install: false

# Puppeteer's install script downloads the browser pa11y drives.
- name: Install pa11y-ci
working-directory: ${{ runner.temp }}
run: |
npm install -g pa11y-ci
mkdir pa11y && cd pa11y && echo '{}' > package.json
pnpm add pa11y-ci pa11y --allow-build=puppeteer
echo "$PWD/node_modules/.bin" >> "$GITHUB_PATH"

- name: Use 'localhost'
uses: jacobtomlinson/gha-find-replace@v3
Expand All @@ -57,7 +69,7 @@ jobs:
run: bundle exec jekyll serve --port 4000 --detach

- name: Show environment
run: npx pa11y --environment
run: pa11y --environment

- name: Test accessibility
run: >
Expand Down
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@
"label": "Lint: Markdown files",
"detail": "Run markdownlint over documentation",
"type": "shell",
"command": "echo y | npx markdownlint-cli2",
"command": "pnpm dlx markdownlint-cli2",
Comment thread
DaveSkender marked this conversation as resolved.
Resolved
"group": "test",
"problemMatcher": "$markdownlint"
},
{
"label": "Lint: Markdown files (fix)",
"detail": "Auto-fix markdown formatting issues",
"type": "shell",
"command": "echo y | npx markdownlint-cli2 --fix",
"command": "pnpm dlx markdownlint-cli2 --fix",
"problemMatcher": "$markdownlint"
},
{
Expand Down