-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactorings on client and fix sonarqube problems
- Loading branch information
Showing
141 changed files
with
9,918 additions
and
5,860 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,54 +8,20 @@ jobs: | |
- name: Check out Git repository | ||
uses: actions/[email protected] | ||
|
||
# - name: Install Node.js, NPM and Yarn | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
# uses: actions/[email protected] | ||
# with: | ||
# node-version: 14 | ||
|
||
# - name: yarn install from npmjs registry | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
# run: | | ||
# npm config set registry https://registry.npmjs.org | ||
# cd app/client | ||
# yarn install --no-lockfile | ||
# cd .. | ||
# yarn install --no-lockfile | ||
# cd .. | ||
# yarn install --no-lockfile | ||
|
||
- name: configure app/client for yarn cache | ||
- name: install yarn dependencies in app/client using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./app/client | ||
|
||
- name: configure project root for yarn cache | ||
- name: install yarn dependencies in ./ using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./ | ||
|
||
- name: ./app/client yarn install | ||
run: yarn install --frozen-lockfile | ||
working-directory: ./app/client | ||
- name: ./ yarn install | ||
run: yarn install --frozen-lockfile | ||
working-directory: ./ | ||
|
||
# - name: Configure private AWS npm registry and install packages from it | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
# if: ${{ failure() }} | ||
# run: | | ||
# npm config set registry https://packages.deskreen.com/ | ||
# npm set //packages.deskreen.com/:_authToken="${{ secrets.NPMRC_USER_TOKEN }}" | ||
# npm config set always-auth true | ||
# cd app/client | ||
# yarn install --frozen-lockfile | ||
# cd ../.. | ||
# yarn install --frozen-lockfile | ||
- name: install yarn dependencies in ./app using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./app | ||
|
||
- name: yarn build | ||
run: yarn build | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,37 +41,52 @@ jobs: | |
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
uses: actions/[email protected] | ||
- name: install yarn dependencies in app/client using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./app/client | ||
|
||
- name: install yarn dependencies in ./ using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
node-version: 14 | ||
working-directory: ./ | ||
|
||
- name: yarn install from npmjs registry | ||
- name: install yarn dependencies in ./app using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./app | ||
|
||
- name: yarn build | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
run: | | ||
npm config set registry https://registry.npmjs.org | ||
cd app/client | ||
yarn install --no-lockfile | ||
cd .. | ||
yarn install --no-lockfile | ||
cd .. | ||
yarn install --no-lockfile | ||
- name: Configure private AWS npm registry and install packages from it | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn build | ||
|
||
- name: yarn lint | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
if: ${{ failure() }} | ||
run: | | ||
npm config set registry https://packages.deskreen.com/ | ||
npm set //packages.deskreen.com/:_authToken="${{ secrets.NPMRC_USER_TOKEN }}" | ||
npm config set always-auth true | ||
cd app/client | ||
yarn install --frozen-lockfile | ||
cd ../.. | ||
yarn install --frozen-lockfile | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn lint | ||
|
||
- name: yarn tsc | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn tsc | ||
|
||
- name: yarn test | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn test | ||
|
||
- name: yarn build-ux | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn build-ux | ||
|
||
- name: yarn test-ux | ||
uses: GabrielBB/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
run: yarn test-ux | ||
|
||
- name: yarn package-ci | ||
env: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,37 +16,20 @@ jobs: | |
- name: Check out Git repository | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node.js, NPM and Yarn | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
uses: actions/[email protected] | ||
- name: install yarn dependencies in app/client using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
node-version: 14 | ||
working-directory: ./app/client | ||
|
||
- name: yarn install from npmjs registry | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
run: | | ||
npm config set registry https://registry.npmjs.org | ||
cd app/client | ||
yarn install --no-lockfile | ||
cd .. | ||
yarn install --no-lockfile | ||
cd .. | ||
yarn install --no-lockfile | ||
- name: install yarn dependencies in ./ using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./ | ||
|
||
- name: Configure private AWS npm registry and install packages from it | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
if: ${{ failure() }} | ||
run: | | ||
npm config set registry https://packages.deskreen.com/ | ||
npm set //packages.deskreen.com/:_authToken="${{ secrets.NPMRC_USER_TOKEN }}" | ||
npm config set always-auth true | ||
cd app/client | ||
yarn install --frozen-lockfile | ||
cd ../.. | ||
yarn install --frozen-lockfile | ||
- name: install yarn dependencies in ./app using cache | ||
uses: bahmutov/[email protected] | ||
with: | ||
working-directory: ./app | ||
|
||
# following step does code signing when `electron-builder --publish always` (look in package.json) | ||
- name: yarn package-ci | ||
|
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
sonar.projectKey=deskreen-viewer | ||
sonar.typescript.lcov.reportPaths=coverage/lcov.info | ||
sonar.sources=src | ||
sonar.coverage.exclusions=src/**/*.spec.ts,src/**/*.spec.tsx,src/**/*.test.ts,src/**/*.test.tsx,src/serviceWorker.ts,src/index.tsx | ||
sonar.cpd.exclusions=src/**/mocks/*,src/**/*.spec.ts,src/**/*.spec.tsx,src/**/*.test.ts,src/**/*.test.tsx,src/serviceWorker.ts,src/index.tsx | ||
sonar.coverage.exclusions=src/**/mocks/*,src/**/*.spec.ts,src/**/*.spec.tsx,src/**/*.test.ts,src/**/*.test.tsx,src/serviceWorker.ts,src/index.tsx | ||
sonar.host.url=http://localhost:9000 | ||
sonar.login=e3b5f73b8778290f7074c40a4159c32b7f15a8e6 | ||
sonar.exclusions=src/serviceWorker.ts,node_modules/** |
Oops, something went wrong.