Skip to content

Commit

Permalink
Switched NODE_ENV to tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhudec committed May 22, 2024
1 parent 6313d15 commit d4285ae
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
62 changes: 32 additions & 30 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ commands:
- run:
name: << parameters.label >>
command: make << parameters.target >> SPEC_FILES="<< parameters.spec_files >>"
environment:
- NODE_ENV: test
store_cypress_artifacts:
description: Store Cypress artifacts like screenshots and videos
steps:
Expand All @@ -253,34 +255,34 @@ workflows:
version: 2
datahub:
jobs:
- lint: *ignore_ghpages
- unit_tests: *ignore_ghpages
- unit_client_tests: *ignore_ghpages
# - lint: *ignore_ghpages
# - unit_tests: *ignore_ghpages
# - unit_client_tests: *ignore_ghpages
- functional_tests: *ignore_ghpages
- a11y_tests: *ignore_ghpages
- visual_tests: *ignore_ghpages
- visual_component_tests: *ignore_ghpages
- component_tests: *ignore_ghpages
- e2e_tests:
<<: *ignore_ghpages
name: e2e_tests_<< matrix.staff >>
matrix:
parameters:
staff: [da, lep]
- e2e_tests_dit:
<<: *ignore_ghpages
name: e2e_tests_dit
matrix:
parameters:
staff: [dit]
- release-storybook:
<<: *ignore_ghpages
filters:
branches:
only:
- main
- merge-and-publish-coverage:
<<: *ignore_ghpages
requires:
- functional_tests
- unit_tests
# - a11y_tests: *ignore_ghpages
# - visual_tests: *ignore_ghpages
# - visual_component_tests: *ignore_ghpages
# - component_tests: *ignore_ghpages
# - e2e_tests:
# <<: *ignore_ghpages
# name: e2e_tests_<< matrix.staff >>
# matrix:
# parameters:
# staff: [da, lep]
# - e2e_tests_dit:
# <<: *ignore_ghpages
# name: e2e_tests_dit
# matrix:
# parameters:
# staff: [dit]
# - release-storybook:
# <<: *ignore_ghpages
# filters:
# branches:
# only:
# - main
# - merge-and-publish-coverage:
# <<: *ignore_ghpages
# requires:
# - functional_tests
# - unit_tests
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start": "node --use-strict src/server.js",
"start:coverage": "nyc --silent npm run start",
"build": "npm run clean && webpack",
"develop": "NODE_ENV=development npm run watch:js:client -- --env development",
"develop": "NODE_ENV=test npm run watch:js:client -- --env test",
"watch:test": "npm run test:unit -- -w",
"watch:js:client": "webpack --watch --progress",
"watch:js:server": "nodemon $NODE_DEBUG_OPTION --inspect --ignore 'src/**/__test__/**/*'",
Expand Down

0 comments on commit d4285ae

Please sign in to comment.