Whalebird-desktop-client-ma.../.circleci/config.yml

72 lines
1.9 KiB
YAML
Raw Normal View History

2018-04-12 14:36:56 +02:00
version: 2
jobs:
build:
docker:
2022-01-27 14:44:38 +01:00
- image: node:16.13.1-buster-slim
2018-04-12 14:36:56 +02:00
working_directory: /var/opt/app
steps:
- checkout
2018-09-26 15:01:03 +02:00
- run:
name: git
2018-09-26 15:01:03 +02:00
command: |
apt-get update
apt-get install -y git
2018-04-12 14:36:56 +02:00
- restore_cache:
name: Restoring cache - node_modules
keys:
2022-01-27 14:44:38 +01:00
- node_modules-{{ arch }}-node16.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
2018-04-12 14:36:56 +02:00
- run:
name: Install packages
2020-09-13 10:13:22 +02:00
command: yarn install
2018-04-12 14:36:56 +02:00
- save_cache:
name: Saving cache - node_modules
2022-01-27 14:44:38 +01:00
key: node_modules-{{ arch }}-node16.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
2018-04-12 14:36:56 +02:00
paths:
- node_modules
- run:
name: spec
2020-09-13 10:13:22 +02:00
command: yarn run spec
- run:
name: compile main
command: yarn run pack:main
- run:
name: compile renderer
command: yarn run pack:renderer
2022-05-01 11:07:03 +02:00
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