Circle config move steps from alias to job definition

This commit is contained in:
BryceLTaylor committed 2022-01-14 15:12:02 -05:00
1 parent ce26d6e252
commit a860cf4697
1 file changed
+18 -22
+18 -22
View File
@@ -42,25 +42,6 @@ aliases:
docker:
- image: circleci/node:10-browsers
working_directory: ~/repo
- &setup_steps
- *restore_git_cache
- checkout
- run: npm ci
- &test_steps
- run:
name: Lint
command: npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
- run:
name: Unit
environment:
JEST_JUNIT_OUTPUT_NAME: unit-results.xml
command: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
- store_artifacts:
path: coverage
- &build_steps
- run:
name: Build
command: npm run build
jobs:
build-test-no-cache:
@@ -70,9 +51,24 @@ jobs:
NODE_ENV: production
NODE_OPTIONS: --max-old-space-size=4000
steps:
- *setup_steps
- *test_steps
- *build_steps
- *restore_git_cache
- checkout
- run: npm ci
- run:
name: Lint
command: npm run test:lint -- --quiet --output-file test-results/eslint-results.xml --format junit
- run:
name: Unit
environment:
JEST_JUNIT_OUTPUT_NAME: unit-results.xml
command: npm run test:unit -- --reporters="default" --reporters="jest-junit" --coverage --coverageReporters=text --coverageReporters=lcov --maxWorkers="2"
- run:
name: Build
command: npm run build
- store_artifacts:
path: coverage
- store_test_results:
path: test-results
setup:
<<: *defaults
steps: