Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): missing workflow #19

Merged
merged 21 commits into from
Feb 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 40 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,48 @@
version: 2.1

orbs:
node: circleci/node@1.1
executors:
node:
docker:
- image: circleci/node:<<parameters.tag>>
environment:
NODE_ENV: "ci"
parameters:
tag:
default: lts
description: |
Pick a specific circleci/node image variant: https://hub.docker.com/r/circleci/node/tags
type: string

commands:
install:
parameters:
cache-version:
default: v1
description: |
Cache version; increment this for a fresh cache
type: string
steps:
- restore_cache:
keys:
- node-deps-<<parameters.cache-version>>-{{ checksum "yarn.lock"}}
- node-deps-<<parameters.cache-version>>-
- run: yarn --frozen-lockfile
- save_cache:
key: node-deps-<<parameters.cache-version>>-{{ checksum "yarn.lock"}}
paths:
- node_modules
- ~/.cache/yarn

jobs:
lint:
executor:
name: node/default
tag: '10'
executor: node
steps:
- checkout
- node/with-cache:
cache-key: yarn.lock
steps:
- run: yarn install
- install
- run: yarn lint

workflows:
version: 2
verify:
jobs:
- lint
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const isDev = !process.env.NODE_ENV || process.env.NODE_ENV === 'development';

console.log(process.env.NODE_ENV);

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
Expand Down