mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
circleci test build
This commit is contained in:
@@ -72,9 +72,51 @@ jobs:
|
||||
name: test frontend
|
||||
command: cd frontend && npm test
|
||||
|
||||
test-frontend-build:
|
||||
docker:
|
||||
- image: circleci/node:12
|
||||
|
||||
working_directory: ~/writer/frontend
|
||||
|
||||
steps:
|
||||
- checkout:
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- backend-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
- run:
|
||||
name: install backend deps
|
||||
command: npm i
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: backend-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- frontend-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
- run:
|
||||
name: install frontend deps
|
||||
command: cd frontend && npm i
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- frontend/node_modules
|
||||
key: frontend-dependencies-{{ checksum "package.json" }}
|
||||
|
||||
- run:
|
||||
name: test frontend
|
||||
command: cd frontend && npm run build
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test:
|
||||
jobs:
|
||||
- test-backend
|
||||
- test-frontend
|
||||
- test-frontend-build
|
||||
requires:
|
||||
- test-frontend
|
||||
|
||||
Reference in New Issue
Block a user