add ci
This commit is contained in:
parent
a86bf32ee2
commit
6e4041560b
37
.github/workflows/continuous_integration.yml
vendored
37
.github/workflows/continuous_integration.yml
vendored
@ -166,3 +166,40 @@ jobs:
|
|||||||
run: yarn run pretty-check
|
run: yarn run pretty-check
|
||||||
working-directory: "back"
|
working-directory: "back"
|
||||||
|
|
||||||
|
continuous-integration-desktop:
|
||||||
|
name: "Continuous Integration Desktop"
|
||||||
|
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "actions/checkout@v2.0.0"
|
||||||
|
|
||||||
|
- name: "Setup NodeJS"
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: yarn install --froze-lockfile
|
||||||
|
working-directory: "desktop"
|
||||||
|
|
||||||
|
- name: "Build"
|
||||||
|
run: yarn build
|
||||||
|
working-directory: "desktop"
|
||||||
|
|
||||||
|
- name: "Typecheck"
|
||||||
|
run: yarn typecheck
|
||||||
|
working-directory: "desktop"
|
||||||
|
|
||||||
|
- name: "Lint"
|
||||||
|
run: yarn lint
|
||||||
|
working-directory: "desktop"
|
||||||
|
|
||||||
|
- name: "Jasmine"
|
||||||
|
run: yarn test
|
||||||
|
working-directory: "desktop"
|
||||||
|
|
||||||
|
- name: "Prettier"
|
||||||
|
run: yarn pretty-check
|
||||||
|
working-directory: "desktop"
|
||||||
|
1
desktop/.prettierignore
Normal file
1
desktop/.prettierignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
src/Messages/generated
|
4
desktop/.prettierrc.json
Normal file
4
desktop/.prettierrc.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 120,
|
||||||
|
"tabWidth": 4
|
||||||
|
}
|
@ -5,14 +5,14 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "SEE LICENSE IN LICENSE.txt",
|
"license": "SEE LICENSE IN LICENSE.txt",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"tsc": "tsup-node ./src/main.ts",
|
"build": "tsup-node ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.js",
|
||||||
"dev": "tsup-node ./src/main.ts ./src/sidebar/preload.ts ./src/app/preload.js --watch --onSuccess 'yarn electron dist/main.js'",
|
"typecheck": "tsc --noEmit",
|
||||||
"prod": "tsc && node --max-old-space-size=4096 ./dist/server.js",
|
"dev": "yarn build --watch --onSuccess 'yarn electron dist/main.js'",
|
||||||
"runprod": "node --max-old-space-size=4096 ./dist/server.js",
|
|
||||||
"profile": "tsc && node --prof ./dist/server.js",
|
|
||||||
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
|
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
|
||||||
"lint": "node_modules/.bin/eslint src/ . --ext .ts",
|
"lint": "yarn eslint src/ . --ext .ts",
|
||||||
"fix": "node_modules/.bin/eslint --fix src/ . --ext .ts"
|
"fix": "yarn eslint --fix src/ . --ext .ts",
|
||||||
|
"pretty": "yarn prettier --write 'src/**/*.{ts,tsx}'",
|
||||||
|
"pretty-check": "yarn prettier --check 'src/**/*.{ts,tsx}'"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"auto-launch": "^5.0.5",
|
"auto-launch": "^5.0.5",
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"electron-builder": "^22.14.13",
|
"electron-builder": "^22.14.13",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"jasmine": "^3.5.0",
|
"jasmine": "^3.5.0",
|
||||||
|
"prettier": "^2.5.1",
|
||||||
"tsup": "^5.11.13",
|
"tsup": "^5.11.13",
|
||||||
"typescript": "^3.8.3"
|
"typescript": "^3.8.3"
|
||||||
},
|
},
|
||||||
|
0
desktop/tests/.gitkeep
Normal file
0
desktop/tests/.gitkeep
Normal file
@ -67,6 +67,8 @@
|
|||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||||
|
|
||||||
/* Advanced Options */
|
/* Advanced Options */
|
||||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
||||||
|
|
||||||
|
"skipLibCheck": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2413,6 +2413,11 @@ prepend-http@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
|
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
|
||||||
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
|
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
|
||||||
|
|
||||||
|
prettier@^2.5.1:
|
||||||
|
version "2.5.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
|
||||||
|
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
|
||||||
|
|
||||||
process-nextick-args@~2.0.0:
|
process-nextick-args@~2.0.0:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
||||||
|
Loading…
Reference in New Issue
Block a user