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

chore(build): use patternfly-a11y #3339

Merged
merged 4 commits into from Dec 3, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 18 additions & 1 deletion .circleci/config.yml
Expand Up @@ -68,6 +68,9 @@ workflows:
- test_jest_other:
requires:
- build
- test_a11y_pf4:
requires:
- build_pf4_docs
- build_integration:
requires:
- build
Expand Down Expand Up @@ -212,14 +215,28 @@ jobs:
- persist_to_workspace:
root: ~/project
paths:
- packages/patternfly-4/react-docs/.cache/
- packages/patternfly-4/react-docs/public/
test_a11y_pf4:
docker:
- image: circleci/node:10-browsers
steps:
- *attach_workspace
- restore_cache:
keys:
- *js_deps_cache_key
- run:
name: PF4 a11y tests
command: yarn test:a11y || true
- store_artifacts:
path: packages/patternfly-4/react-docs/coverage/
upload_docs:
docker:
- image: circleci/node:10
steps:
- *attach_workspace
- run:
name: Build docs Folder
name: Build docs folder
command: .circleci/copy-docs.sh
- run:
name: Upload docs to surge.sh
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -99,6 +99,7 @@
"start:pf4": "yarn build:pf4 && lerna run develop --parallel --stream",
"storybook": "start-storybook -c storybook -p 6006",
"test": "jest packages",
"test:a11y": "lerna run test:a11y:ci --stream",
"test:current": "jest --watch",
"test:integration": "lerna run test:integration",
"test:misc": "jest packages/react-*",
Expand Down
10 changes: 7 additions & 3 deletions packages/patternfly-4/react-docs/package.json
Expand Up @@ -12,7 +12,9 @@
"clean:mdx": "rimraf .cache/caches/gatsby-mdx",
"develop": "gatsby develop",
"gatsby": "gatsby",
"serve": "gatsby serve --prefix-paths"
"serve": "gatsby serve --prefix-paths",
"test:a11y": "patternfly-a11y --file .cache/fullscreenPages.json --prefix http://localhost:9000/patternfly-4 --aggregate --noIncomplete",
"test:a11y:ci": "start-server-and-test serve http://localhost:9000/patternfly-4 test:a11y"
},
"dependencies": {
"@mdx-js/mdx": "^1.1.5",
Expand All @@ -32,15 +34,17 @@
"gatsby": "2.17.10",
"gatsby-cli": "2.8.8",
"gatsby-source-filesystem": "^2.1.22",
"gatsby-theme-patternfly-org": "^0.0.20",
"gatsby-theme-patternfly-org": "^1.1.1",
"gatsby-transformer-json": "^2.2.15",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-helmet": "^5.2.1"
},
"devDependencies": {
"@patternfly/patternfly-a11y": "^0.0.11",
"rimraf": "^2.6.3",
"shx": "^0.3.2"
"shx": "^0.3.2",
"start-server-and-test": "^1.5.0"
},
"keywords": [
"gatsby"
Expand Down
Empty file modified scripts/promote.sh 100644 → 100755
Empty file.