2
0
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:
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: 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

View File

@ -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

View File

@ -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",

View File

@ -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",