diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0e0c922 --- /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:ci \ 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 diff --git a/package.json b/package.json index b6fa222..2315f82 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", @@ -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": {