diff --git a/.circleci/config.yml b/.circleci/config.yml index 87ea798835..0f77a5da75 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,10 +33,10 @@ install_deploysuite: &install_deploysuite cp ./../buildscript/buildenv.sh . cp ./../buildscript/awsconfiguration.sh . restore_cache_settings_for_build: &restore_cache_settings_for_build - key: docker-node-modules-v3-{{ checksum "package-lock.json" }} + key: docker-node-modules-v4-{{ checksum "package-lock.json" }} save_cache_settings: &save_cache_settings - key: docker-node-modules-v3-{{ checksum "package-lock.json" }} + key: docker-node-modules-v4-{{ checksum "package-lock.json" }} paths: - node_modules @@ -260,37 +260,37 @@ jobs: # path: ./automated-smoke-test/test-results # Automated Smoke Testing against Production - Smoke-Testing-On-Production: - <<: *defaults - steps: - # Initialization. - - checkout - - setup_remote_docker - - run: *install_dependency - - run: *install_deploysuite - # Restoration of node_modules from cache. - - restore_cache: *restore_cache_settings_for_build - - run: - name: "configuring environment" - command: | - ./awsconfiguration.sh PROD - ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar - - run: - name: "Run automation" - no_output_timeout: 20m - command: | - source awsenvconf - source buildenvvar - ./automated-smoke-test/smoketest.sh automation-config-prod.json prod - - store_artifacts: - path: ./automated-smoke-test/test-results + # Smoke-Testing-On-Production: + # <<: *defaults + # steps: + # # Initialization. + # - checkout + # - setup_remote_docker + # - run: *install_dependency + # - run: *install_deploysuite + # # Restoration of node_modules from cache. + # - restore_cache: *restore_cache_settings_for_build + # - run: + # name: "configuring environment" + # command: | + # ./awsconfiguration.sh PROD + # ./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar + # - run: + # name: "Run automation" + # no_output_timeout: 20m + # command: | + # source awsenvconf + # source buildenvvar + # ./automated-smoke-test/smoketest.sh automation-config-prod.json prod + # - store_artifacts: + # path: ./automated-smoke-test/test-results # Test job for the cases when we do not need deployment. It just rapidly # installs (updates) app dependencies, and runs tests (ESLint, Stylelint, # Jest unit-tests). test: docker: - - image: circleci/node:8.11.1 + - image: circleci/node:10.24.1 steps: - checkout - restore_cache: @@ -358,8 +358,6 @@ workflows: branches: only: - develop - - TOP-1390 - - PM-191-2 # This is alternate dev env for parallel testing # Deprecate this workflow due to beta env shutdown # https://topcoder.atlassian.net/browse/CORE-251 diff --git a/.nvmrc b/.nvmrc index af557cc054..c8b7cbff70 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v8.11.2 +v10.24.1 diff --git a/Dockerfile b/Dockerfile index 7691feebdc..0e7f8c6e2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,16 @@ # and runs it against the specified Topcoder backend (development or # production) when container is executed. -FROM node:8.11.2 +FROM node:10.24.1 LABEL app="Community App" version="1.0" +RUN useradd -m -s /bin/bash appuser WORKDIR /opt/app COPY . . +RUN chown -R appuser:appuser /opt/app +USER appuser + ################################################################################ # Receiving of build arguments. diff --git a/__tests__/shared/__snapshots__/index.jsx.snap b/__tests__/shared/__snapshots__/index.jsx.snap deleted file mode 100644 index 2069cbf96f..0000000000 --- a/__tests__/shared/__snapshots__/index.jsx.snap +++ /dev/null @@ -1,87 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Snapshot match 1`] = ` -
- - - -