mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-19 21:00:33 +03:00
chore: update circlici config for e2e tests
This commit is contained in:
committed by
Alexander Lichter
parent
2b24acc8b2
commit
749f8d6228
+45
-6
@@ -1,8 +1,15 @@
|
||||
version: 2
|
||||
|
||||
defaults: &defaults
|
||||
working_directory: ~/project
|
||||
docker:
|
||||
- image: circleci/node:latest
|
||||
environment:
|
||||
NODE_ENV: test
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/node
|
||||
setup:
|
||||
<<: *defaults
|
||||
steps:
|
||||
# Checkout repository
|
||||
- checkout
|
||||
@@ -22,17 +29,49 @@ jobs:
|
||||
paths:
|
||||
- "node_modules"
|
||||
|
||||
# Lint
|
||||
# Persist workspace
|
||||
- persist_to_workspace:
|
||||
root: ~/project
|
||||
paths:
|
||||
- node_modules
|
||||
|
||||
lint:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
- run:
|
||||
name: Lint
|
||||
command: yarn lint
|
||||
|
||||
# Test
|
||||
test-unit:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
- run:
|
||||
name: Unit Tests
|
||||
command: yarn test:unit --coverage && yarn coverage
|
||||
|
||||
# Test
|
||||
test-e2e:
|
||||
docker:
|
||||
- image: circleci/node:latest-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
- run:
|
||||
name: E2E Tests
|
||||
command: yarn test:e2e
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
||||
commit:
|
||||
jobs:
|
||||
- setup
|
||||
- lint: { requires: [setup] }
|
||||
- test-unit: { requires: [lint] }
|
||||
- test-e2e: { requires: [lint] }
|
||||
|
||||
Reference in New Issue
Block a user