Run typecheck and lint in CI

This commit is contained in:
AkiraFukushima 2022-05-01 18:07:03 +09:00
parent 5c975d515e
commit 60b04b5eae
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
1 changed files with 37 additions and 0 deletions

View File

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