1
0
Fork 0

chore(ci): update Circle CI config

This commit is contained in:
François Chalifour 2020-11-25 15:55:16 +01:00
parent ff51f825f8
commit 5ebca66e48

View file

@ -45,11 +45,10 @@ jobs:
- run: *run_yarn_install - run: *run_yarn_install
- save_cache: *save_yarn_cache - save_cache: *save_yarn_cache
- run: - run:
name: Build & Test packages size name: Build and Size
command: | command: |
yarn run build yarn run build
yarn run test:size yarn run test:size
test_lint: test_lint:
<<: *defaults <<: *defaults
steps: steps:
@ -59,12 +58,19 @@ jobs:
- run: *run_yarn_install - run: *run_yarn_install
- save_cache: *save_yarn_cache - save_cache: *save_yarn_cache
- run: - run:
name: Lint & Code styles name: Linting
command: yarn run lint command: yarn run lint
test_types:
<<: *defaults
steps:
- checkout
- run: *install_yarn_version
- restore_cache: *restore_yarn_cache
- run: *run_yarn_install
- save_cache: *save_yarn_cache
- run: - run:
name: Type Checking name: Type checking
command: yarn run test:types command: yarn run test:types
test_unit: test_unit:
<<: *defaults <<: *defaults
steps: steps:
@ -76,7 +82,6 @@ jobs:
- run: - run:
name: Unit tests name: Unit tests
command: yarn run test --maxWorkers=4 command: yarn run test --maxWorkers=4
release: release:
<<: *defaults <<: *defaults
steps: steps:
@ -88,7 +93,6 @@ jobs:
- run: - run:
name: Release if needed name: Release if needed
command: yarn run shipjs trigger command: yarn run shipjs trigger
test_cypress: test_cypress:
<<: *cypress <<: *cypress
steps: steps:
@ -114,7 +118,8 @@ workflows:
- test_build - test_build
- test_unit - test_unit
- test_lint - test_lint
- test_cypress # TODO: Enable again once Cypress is installed on the repo.
# - test_cypress
- release: - release:
filters: filters:
branches: branches: