From 767ef12b241c3829dba5bbbf650d8157b301daa1 Mon Sep 17 00:00:00 2001 From: gauravkr04 <98069083+gauravkr04@users.noreply.github.com> Date: Sat, 11 Mar 2023 02:08:25 -0800 Subject: [PATCH 1/2] Add .circleci/config.yml --- .circleci/config.yml | 54 ++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 35 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f28cb98c..6554e1f4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,42 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference version: 2.1 -workflows: - version: 2 - build: - jobs: - - build - +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs jobs: - build: - working_directory: ~/mern-starter + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor docker: - - image: circleci/node:10.16.3 - - image: mongo:4.2.0 + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps steps: - checkout - run: - name: update-npm - command: 'sudo npm install -g npm@5' - - restore_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - - run: - name: install-npm-wee - command: npm install - - save_cache: - key: dependency-cache-{{ checksum "package-lock.json" }} - paths: - - ./node_modules - - run: - name: test - command: npm test - - run: - name: code-coverage - command: './node_modules/.bin/nyc report --reporter=text-lcov' - - store_artifacts: - path: test-results.xml - prefix: tests - - store_artifacts: - path: coverage - prefix: coverage - - store_test_results: - path: test-results.xml + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello From b33836ee703ce050cde6fa30333cf1ca58cb5f52 Mon Sep 17 00:00:00 2001 From: gauravkr04 <98069083+gauravkr04@users.noreply.github.com> Date: Sat, 11 Mar 2023 02:18:56 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6eef16b4..1adc842b 100644 --- a/README.md +++ b/README.md @@ -243,4 +243,4 @@ In development, after all scripts get loaded, react loads the CSS as BLOBs. That This warning is visible only on development and totally harmless. This occurs to hash difference in `react-router`. To solve it, react router docs asks you to use `match` function. If we use `match`, `react-hot-reloader` stops working. ## License -MERN is released under the [MIT License](http://www.opensource.org/licenses/MIT). +MERN is released under the [MIT License](http://www.opensource.org/licenses/MIT)...