Skip to content

💚 Update worklow to test accessibility #106

💚 Update worklow to test accessibility

💚 Update worklow to test accessibility #106

Workflow file for this run

on:
pull_request:
branches:
- main
paths-ignore:
- "README.md"
- "SECURITY.md"
- "LICENCE"
- "GUIDE.md"
- "CONTRIBUTING.md"
- "CODE_OF_CONDUCT.md"
permissions:
pull-requests: write
contents: read
jobs:
compile-themes:
runs-on: ubuntu-latest
name: Compile themes
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install npm dependencies
run: |
npm ci
npm install -g sass
shell: bash
working-directory: ./chimera-css
- name: Compile sass
run: |
sass src/themes/chimera.scss build/chimera.css
sass src/themes/chimera-dark.scss build/chimera-dark.css
sass src/themes/chimera-golden.scss build/chimera-golden.css
sass src/themes/chimera-autumn.scss build/chimera-autumn.css
sass src/themes/chimera-plain.scss build/chimera-plain.css
sass src/themes/chimera-blues.scss build/chimera-blues.css
sass src/themes/chimera-nightsky.scss build/chimera-nightsky.css
shell: bash
working-directory: ./chimera-css
accessibility-testing:
runs-on: ubuntu-latest
name: Testing accessibility
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Intall Pa11y-CI
run: |
npm install -g pa11y-ci
shell: bash
working-directory: ./apps/demo
- name: Install GitHub CLI
run: sudo apt-get install -y gh
- name: Run Pa11y accessibility tests and post results to PR
if: success() || failure()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pa11y-ci --config ./pa11yci.json | gh pr comment ${{ github.event.pull_request.number }} --body -
shell: bash