mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 20:22:32 +02:00
refactor(starter): upgrade and move to typescript
This commit is contained in:
@@ -12,12 +12,12 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dependencies-{{ checksum "yarn.lock" }}
|
||||
- run: yarn install --frozen-lockfile
|
||||
- dependencies-{{ checksum "package-lock.json" }}
|
||||
- run: npm ci
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: dependencies-{{ checksum "yarn.lock" }}
|
||||
key: dependencies-{{ checksum "package-lock.json" }}
|
||||
|
||||
lint:
|
||||
<<: *defaults
|
||||
@@ -25,8 +25,8 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dependencies-{{ checksum "yarn.lock" }}
|
||||
- run: yarn lint
|
||||
- dependencies-{{ checksum "package-lock.json" }}
|
||||
- run: npm run lint
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
@@ -34,8 +34,8 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dependencies-{{ checksum "yarn.lock" }}
|
||||
- run: yarn test --runInBand --no-cache
|
||||
- dependencies-{{ checksum "package-lock.json" }}
|
||||
- run: npm run test --runInBand --no-cache
|
||||
|
||||
coverage:
|
||||
<<: *defaults
|
||||
@@ -43,8 +43,8 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dependencies-{{ checksum "yarn.lock" }}
|
||||
- run: yarn test:coverage --runInBand --no-cache
|
||||
- dependencies-{{ checksum "package-lock.json" }}
|
||||
- run: npm run test:coverage --runInBand --no-cache
|
||||
- save_cache:
|
||||
key: coverage-{{ .Environment.CIRCLE_SHA1 }}
|
||||
paths:
|
||||
@@ -56,13 +56,12 @@ jobs:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- dependencies-{{ checksum "yarn.lock" }}
|
||||
- dependencies-{{ checksum "package-lock.json" }}
|
||||
- restore_cache:
|
||||
keys:
|
||||
- coverage-{{ .Environment.CIRCLE_SHA1 }}
|
||||
- run: yarn global add codecov
|
||||
- run: yarn codecov
|
||||
|
||||
- run: npx codecov
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test:
|
||||
|
Reference in New Issue
Block a user