Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Pa11y testing to github actions #162

Closed
wants to merge 3 commits into from
Closed
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
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile && yarn build
- run: yarn pa11y-ci:home && yarn pa11y-ci:sitemap
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
7 changes: 7 additions & 0 deletions .pa11yci
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"defaults": {
"concurrency": 4,
"standard": "WCAG2AA",
"runners": ["axe"]
}
}
10 changes: 8 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const siteUrl = process.env.URL || `https://civicactions.com/`;
module.exports = {
siteMetadata: {
title: `CivicActions | Open and Agile Digital Government Services`,
Expand All @@ -9,7 +10,7 @@ module.exports = {
address_line_2: `Unit 269,`,
city: `Lafayette, CA 94549`,
url: `https://civicactions.com/`,
siteUrl: `https://civicactions.com/`,
siteUrl: siteUrl,
twitterUsername: '@CivicActions',
image: 'ca-extended-logo.svg',
},
Expand All @@ -20,7 +21,12 @@ module.exports = {
`gatsby-plugin-image`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-sitemap",
options: {
output: `./sitemap.xml`,
}
},
{
resolve: 'gatsby-plugin-robots-txt',
options: {
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"serve": "gatsby serve",
"clean": "gatsby clean",
"deploy": "gatsby build --prefix-paths && gh-pages -d public",
"reset": "yarn clean && rm -rf node_modules && yarn && yarn develop"
"reset": "yarn clean && rm -rf node_modules && yarn && yarn develop",
"pa11y-ci:home": "pa11y-ci http://localhost:8000",
"pa11y-ci:sitemap": "pa11y-ci --sitemap http://localhost:8000/sitemap/sitemap-0.xml --sitemap-find https://civicactions.com --sitemap-replace http://localhost:8000 --sitemap-exclude \"/*.pdf\""
},
"dependencies": {
"@aaronhayes/react-use-hubspot-form": "^1.2.5",
Expand All @@ -31,11 +33,13 @@
"gatsby-plugin-robots-txt": "^1.6.8",
"gatsby-plugin-sass": "^4.0.1",
"gatsby-plugin-sharp": "^3.4.2",
"gatsby-plugin-sitemap": "^4.4.0",
"gatsby-plugin-sitemap": "^4.5.0",
"gatsby-remark-autolink-headers": "^4.3.0",
"gatsby-source-rss-feed": "^1.0.4",
"gatsby-transformer-sharp": "^3.4.0",
"intersection-observer": "^0.12.0",
"pa11y": "^6.0.1",
"pa11y-ci": "^2.4.2",
"prettier": "^2.3.0",
"react": "^17.0.1",
"react-accessible-accordion": "^3.3.4",
Expand Down
Loading