mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-29 05:07:49 +00:00
Streamline CI
This commit is contained in:
parent
02fb858e4d
commit
56b25f9dd8
@ -2,7 +2,7 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:10.3
|
- image: circleci/node:12
|
||||||
|
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
@ -11,14 +11,16 @@ jobs:
|
|||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
- v2-dependencies-{{ checksum "package-lock.json" }}
|
||||||
- v1-dependencies-
|
- v2-dependencies-
|
||||||
|
|
||||||
- run: npm install
|
- run: npm ci
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- "$HOME/.npm"
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
key: v2-dependencies-{{ checksum "package-lock.json" }}
|
||||||
|
|
||||||
|
- run: npm run -s typecheck
|
||||||
|
|
||||||
- run: npm run -s lint
|
- run: npm run -s lint
|
@ -10,3 +10,7 @@ trim_trailing_whitespace = true
|
|||||||
[package.json]
|
[package.json]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[.circleci/config.yml]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018,
|
"ecmaVersion": 2018,
|
||||||
|
"project": "tsconfig.json",
|
||||||
"sourceType": "script"
|
"sourceType": "script"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
@ -14,6 +15,7 @@
|
|||||||
"plugins": ["@typescript-eslint"],
|
"plugins": ["@typescript-eslint"],
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"extends": [
|
"extends": [
|
||||||
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"plugin:prettier/recommended",
|
"plugin:prettier/recommended",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"postversion": "git push --atomic --follow-tags origin develop develop:master",
|
"postversion": "git push --atomic --follow-tags origin develop develop:master",
|
||||||
"start": "node index",
|
"start": "node index",
|
||||||
"lint": "eslint --ext .ts --ext .js .",
|
"lint": "eslint --ext .ts --ext .js .",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user