1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-20 10:06:07 +07:00

build: e2e integration with puppeteer (#192)

* build: add e2e testing scripts

* build: add e2e testing scripts

* chore: fix script

* chore: fix script

* chore: ignore e2e normal test

* chore: fix node_latest_browser

* chore: move lint to prepare

* chore: fix lint

* chore: add local theme

* fix: e2e tests
This commit is contained in:
Juan Picado @jotadeveloper
2019-10-13 10:27:01 +02:00
committed by GitHub
parent 0c4fb7da13
commit d1b3e6e3b5
19 changed files with 1328 additions and 142 deletions

View File

@@ -5,6 +5,9 @@ aliases:
~/ui-theme
- &defaults
working_directory: *repo_path
- &node_latest_browser
docker:
- image: circleci/node:latest-browsers
- &node_latest_executor
docker:
- image: circleci/node:latest
@@ -47,9 +50,12 @@ jobs:
- run:
name: Install dependencies
command: yarn install --frozen-lockfile
- run:
name: Lint code
command: yarn lint
- run:
name: Build project
command: yarn run build
command: yarn build
- save_cache:
key: *yarn_cache_key
paths:
@@ -61,15 +67,6 @@ jobs:
paths:
- ./*
lint:
<<: *defaults
<<: *default_executor
steps:
- *restore_repo
- run:
name: Lint code
command: yarn lint
test_bundlesize:
<<: *defaults
<<: *default_executor
@@ -92,6 +89,15 @@ jobs:
paths:
- coverage
test_e2e:
<<: *defaults
<<: *node_latest_browser
steps:
- *restore_repo
- run:
name: Test E2E Node (LTS)
command: yarn test:e2e
test_node_lts:
<<: *defaults
<<: *node_lts_executor
@@ -138,10 +144,6 @@ workflows:
jobs:
- prepare:
<<: *ignore_non_dev_branches
- lint:
requires:
- prepare
<<: *ignore_non_dev_branches
- test_bundlesize:
requires:
- prepare
@@ -154,15 +156,19 @@ workflows:
requires:
- prepare
<<: *ignore_non_dev_branches
- test_e2e:
requires:
- prepare
<<: *ignore_non_dev_branches
- coverage:
requires:
- test_node_latest
<<: *ignore_non_dev_branches
- publish_package:
requires:
- lint
- test_bundlesize
- test_node_latest
- test_node_lts
- test_e2e
- coverage
<<: *execute_on_release