Skip to content

Commit

Permalink
Merge 9be294d into 4088842
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jan 31, 2020
2 parents 4088842 + 9be294d commit fc24965
Show file tree
Hide file tree
Showing 7 changed files with 614 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/optimize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Optimize
on:
pull_request:
paths:
- '**.jpg'
- '**.png'
- '**.webp'
jobs:
build:
name: calibreapp/image-actions
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master

- name: Compress Images
uses: calibreapp/image-actions@master
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
jpegQuality: "75"
pngQuality: "75"
webpQuality: "75"
ignorePaths: "node_modules/**"
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,21 @@ jobs:
- name: Run tests
run: npm test

- name: Run accessibility tests
run: npm run docs-accessibility
if: matrix.node == 12

- name: Generate HTML accessibility results
run: npm run docs-pa11y-html
if: matrix.node == 12 && failure()

- name: Upload accessibility results
uses: actions/upload-artifact@v1
if: matrix.node == 12 && failure()
with:
name: pa11y-ci-results
path: .pa11y/

- name: Run bundlesize
run: npm run bundlesize
if: matrix.node == 10
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ Thumbs.db
# Folders to ignore
/js/coverage/
/node_modules/
/.pa11y/
/pa11y-ci-results.json
15 changes: 15 additions & 0 deletions build/.pa11yci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"standard": "WCAG2AA",
"level": "error",
"concurrency": 4,
"defaults": {
"wait": 5000,
"runners": [
"axe"
],
"hideElements": ".bd-search, [class*=-success], [class*=-info], [class*=-light]",
"ignore": [
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18"
]
}
}
Loading

0 comments on commit fc24965

Please sign in to comment.