From 4ff60d21caa4b52d8ca1f387d693a9553714337b Mon Sep 17 00:00:00 2001 From: arshiyanoorain <78848030+arshiyanoorain@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:50:20 +0530 Subject: [PATCH 1/4] added node.yml --- .github/workflows/node.js.yml | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..dc13aa01 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,62 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - uses: actions/upload-artifact@main + with: + name: artifacts + path: | + lib/ + test/ + views/ + package.json + index.js + out.gif + out2.gif + package-lock.json + test: + runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest] + node-version: [14.x] + needs: build + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@main + with: + name: artifacts + path: artifacts + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, and tests + run: | + npm install + npm test From c386d6bca0926d78b9af7d4f815db915258fdabe Mon Sep 17 00:00:00 2001 From: MeghanaMgowda <78599778+MeghanaMgowda@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:12:46 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e02cd858..44fb5f6d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Welcome +## Welcome all This repository contains the base project part of our on-site GitHub Verified Partner workshop program. It is meant to be used for in-classroom training under the supervision of GitHub coaches. From 7866c000339cb0e01780d147823bb308cf3df9d9 Mon Sep 17 00:00:00 2001 From: RaviSonataGit <79079843+RaviSonataGit@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:34:16 +0530 Subject: [PATCH 3/4] Update node.js.yml --- .github/workflows/node.js.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index dc13aa01..e8e487c7 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -60,3 +60,24 @@ jobs: run: | npm install npm test + + check-quality: + runs-on: ubuntu-latest + needs: test + name: A job to check my code quality + steps: + - name: Check code meets quality standards + id: code-inspector + uses: codeinspectorio/github-action@master + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + code_inspector_access_key: ${{ secrets.CODE_INSPECTOR_ACCESS_KEY }} + code_inspector_secret_key: ${{ secrets.CODE_INSPECTOR_SECRET_KEY }} + min_quality_grade: 'WARNING' + min_quality_score: '50' + max_defects_rate: '0.1001' + max_complex_functions_rate: '0.0001' + max_long_functions_rate: '0.0001' + project_name: '' + max_timeout_sec: '600' + From f770727bce4290bb5cd45e0e7a434ff8723b194e Mon Sep 17 00:00:00 2001 From: RaviSonataGit <79079843+RaviSonataGit@users.noreply.github.com> Date: Mon, 29 Mar 2021 10:42:07 +0530 Subject: [PATCH 4/4] Update utils.test.js --- test/utils.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.test.js b/test/utils.test.js index be1803c5..4e95181b 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -12,7 +12,7 @@ var mochaAsync = fn => { describe("Utils", function() { describe("greetings", function() { it("Says Hello World", function() { - assert.equal(utils.greetings("World"), "Hello World 👋👋"); + assert.equal(utils.greetings("GitHub"), "Hello World 👋👋"); }); it("Throws on missing params", function() {