Skip to content

feat(react): remove focus-trap-react replacing with internally managed focus traps #1189

feat(react): remove focus-trap-react replacing with internally managed focus traps

feat(react): remove focus-trap-react replacing with internally managed focus traps #1189

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- develop
- master
workflow_call:
jobs:
react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
root: false
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
- run: yarn test
screenshots:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
root: true
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
NODE_ENV=production yarn --cwd packages/styles build
- name: Screenshot testing
run: |
yarn screenshots:docker
yarn screenshots
- name: Screenshot test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshot-test-results
path: ./e2e/test-results
retention-days: 14
a11y:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/dependencies
with:
packages-react: true
packages-styles: true
- name: Build packages
run: |
NODE_ENV=production yarn --cwd packages/react build
NODE_ENV=production yarn --cwd packages/styles build
- run: yarn build:docs
- run: yarn test:a11y