Skip to content

Commit

Permalink
check pa11y against cloud.gov pages
Browse files Browse the repository at this point in the history
  • Loading branch information
julialeague committed May 19, 2023
1 parent 62c2bf1 commit 33f6e24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true

- name: Set up pa11y
run: npm install

- name: Build the site
run: hugo

- name: Run a server
uses: Eun/http-server-action@v1
with:
directory: ./public
port: 1313

-
run: curl -vvvv http://127.0.0.1:1313/index.html
run: curl -vvvv https://federalist-1d60e1c6-edfd-4ed3-b30a-e8a2a15b5cae.sites.pages.cloud.gov/preview/18f/guides-and-methods-hugo/jlallen/action-test/index.html

- name: Run pa11y-ci on homepage
run: npm run pa11y-ci:homepage
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"scripts": {
"build": "hugo",
"serve-bg": "hugo serve &",
"pa11y-ci:homepage": "pa11y-ci http://127.0.0.1:1313/index.html",
"pa11y-ci:sitemap": "pa11y-ci --sitemap http://127.0.0.1:1313/sitemap.xml --sitemap-exclude \"/*.pdf\""
"pa11y-ci:homepage": "pa11y-ci https://federalist-1d60e1c6-edfd-4ed3-b30a-e8a2a15b5cae.sites.pages.cloud.gov/preview/18f/guides-and-methods-hugo/jlallen/action-test/index.html",
"pa11y-ci:sitemap": "pa11y-ci --sitemap https://federalist-1d60e1c6-edfd-4ed3-b30a-e8a2a15b5cae.sites.pages.cloud.gov/preview/18f/guides-and-methods-hugo/jlallen/action-test/sitemap.xml --sitemap-exclude \"/*.pdf\""
},
"devDependencies": {
"pa11y-ci": "^2.4.0"
Expand Down

0 comments on commit 33f6e24

Please sign in to comment.