2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 20:57:52 +00:00

Streamline CI

This commit is contained in:
Wojciech Pawlik 2020-05-05 15:59:50 +02:00
parent 02fb858e4d
commit 56b25f9dd8
No known key found for this signature in database
GPG Key ID: 7D763FCB7B36ADB5
4 changed files with 17 additions and 9 deletions

View File

@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:10.3
- image: circleci/node:12
working_directory: ~/repo
@ -11,14 +11,16 @@ jobs:
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- v2-dependencies-{{ checksum "package-lock.json" }}
- v2-dependencies-
- run: npm install
- run: npm ci
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- "$HOME/.npm"
key: v2-dependencies-{{ checksum "package-lock.json" }}
- run: npm run -s typecheck
- run: npm run -s lint

View File

@ -10,3 +10,7 @@ trim_trailing_whitespace = true
[package.json]
indent_style = space
indent_size = 2
[.circleci/config.yml]
indent_style = space
indent_size = 2

View File

@ -1,6 +1,7 @@
{
"parserOptions": {
"ecmaVersion": 2018,
"project": "tsconfig.json",
"sourceType": "script"
},
"env": {
@ -14,6 +15,7 @@
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",

View File

@ -7,7 +7,7 @@
"postversion": "git push --atomic --follow-tags origin develop develop:master",
"start": "node index",
"lint": "eslint --ext .ts --ext .js .",
"test": "echo \"Error: no test specified\" && exit 1"
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",