mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-25 04:50: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
|
version: 2
|
||||||
|
|
||||||
|
defaults: &defaults
|
||||||
|
working_directory: ~/project
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:latest
|
||||||
|
environment:
|
||||||
|
NODE_ENV: test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
setup:
|
||||||
docker:
|
<<: *defaults
|
||||||
- image: circleci/node
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository
|
# Checkout repository
|
||||||
- checkout
|
- checkout
|
||||||
@@ -22,17 +29,49 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- "node_modules"
|
- "node_modules"
|
||||||
|
|
||||||
# Lint
|
# Persist workspace
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: ~/project
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
lint:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: Lint
|
name: Lint
|
||||||
command: yarn lint
|
command: yarn lint
|
||||||
|
|
||||||
# Test
|
test-unit:
|
||||||
|
<<: *defaults
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
command: yarn test:unit --coverage && yarn coverage
|
command: yarn test:unit --coverage && yarn coverage
|
||||||
|
|
||||||
# Test
|
test-e2e:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:latest-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: ~/project
|
||||||
- run:
|
- run:
|
||||||
name: E2E Tests
|
name: E2E Tests
|
||||||
command: yarn test:e2e
|
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