Skip to content

fix: Make keyboard navigation independent of FPS #1673

fix: Make keyboard navigation independent of FPS

fix: Make keyboard navigation independent of FPS #1673

name: React Components CI
on:
pull_request:
branches:
- "**"
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
should-run: ${{ steps.filter.outputs.should-run }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
should-run:
- 'react-components/**'
react-components-ci:
needs: changes
if: ${{ needs.changes.outputs.should-run == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Cognite CICD Yarn
working-directory: react-components
run: |
echo "
npmScopes:
cognite:
npmAlwaysAuth: true
npmAuthToken: \"\${NPM_TOKEN}\"
npmRegistryServer: "https://registry.npmjs.org"
" >> .yarnrc.yml
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Install NPM dependencies
working-directory: react-components
run: yarn install --immutable
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Lint
working-directory: react-components
continue-on-error: false
run: yarn run lint
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Check types
working-directory: react-components
continue-on-error: false
run: yarn run tsc --noEmit
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Build components
working-directory: react-components
continue-on-error: false
run: yarn run build
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Build Storybook
working-directory: react-components
continue-on-error: false
run: yarn run build-storybook
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}