Skip to content

Fix defect in calling code when building the ElementRoleMap #1018

Fix defect in calling code when building the ElementRoleMap

Fix defect in calling code when building the ElementRoleMap #1018

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
workflow_dispatch:
jobs:
jest:
name: Jest (Node v${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [14, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Npm Install
run: npm ci
- name: Run Jest
run: npm run test:ci
- name: Run Coveralls
uses: coverallsapp/[email protected]
if: matrix.node == '16'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./reports/lcov.info
flow:
name: Flow type checking
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node
uses: actions/setup-node@v3
with:
cache: npm
- name: Npm Install
run: npm ci
- name: Flow type check
run: npm run flow
eslint:
name: ESLint (Node v${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Npm Install
run: npm ci
- name: Run ESLint
run: npm run lint
diff-breakUpAriaJSON:
name: Compare JSON to src output
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version
uses: actions/setup-node@v3
with:
cache: npm
- name: Npm Install
run: npm ci
- name: Run diff check for the breakUpAriaJSON script
run: node scripts/breakUpAriaJSON.js && git diff --exit-code -- src