[TT-13512] Add onBlur for combobox component #278
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
# This workflow will run for all PRs opened against master | |
name: Run Tests | |
on: | |
- pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-test-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-test-${{ matrix.node-version }} | |
${{ runner.os }}- | |
- name: install | |
run: npm config set //registry.npmjs.org/:_authToken "${{ secrets. NPM_TOKEN }}" && npm install --force | |
- name: cypress install | |
run: npx cypress install | |
- name: test | |
run: npm test | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
with: | |
projectBaseDir: . | |
args: > | |
-Dsonar.organization=tyktechnologies | |
-Dsonar.projectKey=TykTechnologies_tyk-ui | |
-Dsonar.sources=./src | |
-Dsonar.exclusions=src/common/sass/fontawesome.scss,src/common/sass/tykon.scss | |
-Dsonar.coverage.exclusions=cypress/**/*.js,**/*.test.js,src/form/components/Combobox/**/*.js,src/form/components/Input/**/*.js,src/form/components/EditableList/**/*.js,src/form/redux-form/**/*.js,src/hooks/**/*,src/utils/**/* | |
-Dsonar.cpd.exclusions=**/*.test.js,src/form/redux-form/**/*,src/common/fonts/**/*,src/form/components/Combobox/*.js,src/form/components/Input/*.js,src/form/components/EditableList/**/*.js,src/form/redux-form/**/*.js,src/hooks/**/*,src/utils/**/* | |
-Dsonar.test.inclusions=**/*.test.js | |
-Dsonar.tests=./src | |
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info | |
-Dsonar.eslint.eslintconfigpath=.eslintrc | |
-Dsonar.issue.ignore.multicriteria=S6847,S6819,S3358 | |
-Dsonar.issue.ignore.multicriteria.S6847.ruleKey=javascript:S6847 | |
-Dsonar.issue.ignore.multicriteria.S6847.resourceKey=**/* | |
-Dsonar.issue.ignore.multicriteria.S6819.ruleKey=javascript:S6819 | |
-Dsonar.issue.ignore.multicriteria.S6819.resourceKey=**/* | |
-Dsonar.issue.ignore.multicriteria.S3358.ruleKey=javascript:S3358 | |
-Dsonar.issue.ignore.multicriteria.S3358.resourceKey=**/* | |
env: | |
CI: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |