From 5adb47e64887f07de3984679cb04c460ebd1632c Mon Sep 17 00:00:00 2001 From: Vlad Ifrim Date: Wed, 22 Nov 2023 16:18:48 +0200 Subject: [PATCH] updates the github workflows --- .github/workflows/run-tests.yml | 7 ++++--- .github/workflows/sonarcloud.yml | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6d5133ed..fbda8e37 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,14 +13,14 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node-version: [16.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: cache node modules @@ -46,6 +46,7 @@ jobs: -Dsonar.projectKey=TykTechnologies_tyk-ui -Dsonar.sources=./src -Dsonar.coverage.exclusions=./cypress/**/*.js,**/*.test.js,./src/form/components/Combobox/*.js,./src/form/components/redux-form/**/*.js + -Dsonar.cpd.exclusions=**/*.test.js,src/form/components/redux-form/**/* -Dsonar.test.inclusions=**/*.test.js -Dsonar.tests=./src -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 91327d28..27f7e894 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -8,7 +8,7 @@ jobs: sonarcloud: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: install @@ -22,6 +22,11 @@ jobs: args: > -Dsonar.organization=tyktechnologies -Dsonar.projectKey=TykTechnologies_tyk-ui + -Dsonar.sources=./src + -Dsonar.coverage.exclusions=./cypress/**/*.js,**/*.test.js,./src/form/components/Combobox/*.js,./src/form/components/redux-form/**/*.js + -Dsonar.cpd.exclusions=**/*.test.js,src/form/components/redux-form/**/* + -Dsonar.test.inclusions=**/*.test.js + -Dsonar.tests=./src -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info -Dsonar.eslint.eslintconfigpath=.eslintrc env: