diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2d5a17d8..c2739163 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {}, diff --git a/.github/workflows/test-website-a11y.yml b/.github/workflows/test-website-a11y.yml index 9cea38e3..9c83d4d4 100644 --- a/.github/workflows/test-website-a11y.yml +++ b/.github/workflows/test-website-a11y.yml @@ -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 @@ -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: > diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 29f562d4..3e18e343 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -86,7 +86,7 @@ "label": "Lint: Markdown files", "detail": "Run markdownlint over documentation", "type": "shell", - "command": "echo y | npx markdownlint-cli2", + "command": "pnpm dlx markdownlint-cli2", "group": "test", "problemMatcher": "$markdownlint" }, @@ -94,7 +94,7 @@ "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" }, {