feat(ClickOutsideListener): refactor and allow for ref targets #996
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |