From ca6924d417b12da120154709441f95948f74dfc7 Mon Sep 17 00:00:00 2001 From: Manuel Cepeda Date: Fri, 25 Dec 2020 12:55:21 -0400 Subject: [PATCH 1/3] feature: add ci workflow and badge to readme --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9eee0cb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - development + - stage + - master + pull_request: + branches: + - development + - stage + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@master + with: + persist-credentials: false + + - name: Install 🔧 + run: yarn install + + - name: Build 🏗️ + run: yarn build + + - name: Test 🚨 + run: yarn test \ No newline at end of file diff --git a/README.md b/README.md index 707fd39..286cd6a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Sitio para **descubrir** todos los desarrolladores Dominicanos con sus habilidades y contactos. +[Continuous Integration](https://github.com/DevsDO/whocode-frontend/workflows/CI/badge.svg) + ## Empezando ### Prerequisitos From e0109a05ea6473adcb33a030737ce478a4535e41 Mon Sep 17 00:00:00 2001 From: Manuel Cepeda Date: Fri, 25 Dec 2020 12:55:36 -0400 Subject: [PATCH 2/3] fix: missing comma in package json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b6fa222..2bf7a1f 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-plugin-react-hooks": "^4.0.0", "husky": "^4.3.0", "stylelint": "^13.7.0", - "stylelint-config-standard": "^20.0.0" + "stylelint-config-standard": "^20.0.0", "@babel/core": "^7.11.6", "@storybook/addon-actions": "^6.0.21", "@storybook/addon-essentials": "^6.0.21", From 0a6e0e11722c15780c82f7fe6fa0ae78f50b3436 Mon Sep 17 00:00:00 2001 From: Manuel Cepeda Date: Fri, 25 Dec 2020 13:02:18 -0400 Subject: [PATCH 3/3] enh: add script for ci tests --- .github/workflows/ci.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eee0cb..0e0c922 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,4 +29,4 @@ jobs: run: yarn build - name: Test 🚨 - run: yarn test \ No newline at end of file + run: yarn test:ci \ No newline at end of file diff --git a/package.json b/package.json index 2bf7a1f..2315f82 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,8 @@ "clean": "gatsby clean", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", - "test": "jest --watch" + "test": "jest --watch", + "test:ci": "jest --ci" }, "husky": { "hooks": {