From 60b04b5eaeb79076ff87eea5a3242c58c2e13434 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 1 May 2022 18:07:03 +0900
Subject: [PATCH] Run typecheck and lint in CI
---
.circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 887d25f1..e0602a1a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -32,3 +32,40 @@ jobs:
- run:
name: compile renderer
command: yarn run pack:renderer
+
+ lint:
+ docker:
+ - image: node:16.13.1-buster-slim
+ working_directory: /var/opt/app
+ steps:
+ - checkout
+ - run:
+ name: git
+ command: |
+ apt-get update
+ apt-get install -y git
+ - restore_cache:
+ name: Restoring cache - node_modules
+ keys:
+ - node_modules-{{ arch }}-node16.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
+ - run:
+ name: Install packages
+ command: yarn install
+ - save_cache:
+ name: Saving cache - node_modules
+ key: node_modules-{{ arch }}-node16.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
+ paths:
+ - node_modules
+ - run:
+ name: typecheck
+ command: yarn run typecheck
+ - run:
+ name: lint
+ command: yarn run lint
+
+workflows:
+ version: 2
+ build_and_deploy:
+ jobs:
+ - build
+ - lint