dashboard/.circleci/config.yml

59 lines
1.1 KiB
YAML
Raw Normal View History

2021-06-14 11:29:03 +02:00
version: 2.1
commands:
install_dependencies:
description: "Installs dependencies and uses CircleCI's cache"
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "yarn.lock" }}
- dependencies-
- run:
command: |
yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "yarn.lock" }}
jobs:
style:
docker:
- image: node:latest
steps:
- install_dependencies
- run:
name: prettier
command: |
yarn prettier --check
- run:
name: lint
command: |
yarn lint
2021-06-14 11:30:46 +02:00
dashboard:
2021-06-14 11:29:03 +02:00
docker:
- image: node:latest
steps:
- install_dependencies
- run:
name: typecheck
command: |
yarn typecheck
- run:
name: test
command: |
2021-06-24 12:25:31 +02:00
yarn test --coverage
2021-06-14 11:29:03 +02:00
- run:
name: coverage
command: |
yarn coverage
workflows:
version: 2
2021-06-14 11:30:46 +02:00
dashboard:
2021-06-14 11:29:03 +02:00
jobs:
- style
2021-06-14 11:30:46 +02:00
- dashboard