From e206a1c098fb78bcc56eff530942825a349fb7a2 Mon Sep 17 00:00:00 2001 From: abhishek-at-dexcom <86683233+abhishek-at-dexcom@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:26:50 -0700 Subject: [PATCH 1/5] My First GitHub Action --- .github/workflows/unit_tests.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 32d8c11..a1afc72 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1 +1,17 @@ -name: Unit Tests \ No newline at end of file +name: Unit Tests +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 19338f9e4e1bf052def68fa662b7843300bf7ca6 Mon Sep 17 00:00:00 2001 From: abhishek-at-dexcom <86683233+abhishek-at-dexcom@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:38:37 -0700 Subject: [PATCH 2/5] Run npm test --- .github/workflows/unit_tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a1afc72..9dc3a70 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,3 +15,4 @@ jobs: run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." + - run: npm test From 0074c40bb28b2b73f0740d57d893c55015c8a352 Mon Sep 17 00:00:00 2001 From: abhishek-at-dexcom <86683233+abhishek-at-dexcom@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:45:04 -0700 Subject: [PATCH 3/5] Install npm first --- .github/workflows/unit_tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9dc3a70..f68afb9 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -15,4 +15,7 @@ jobs: run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." + - run: brew install node + - run: npm install + - run: npm start - run: npm test From 1b9c8e526e9ba91d41ec3112fcabc9c8af1f5633 Mon Sep 17 00:00:00 2001 From: abhishek-at-dexcom <86683233+abhishek-at-dexcom@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:49:30 -0700 Subject: [PATCH 4/5] Remove npm start --- .github/workflows/unit_tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f68afb9..57ab29f 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -17,5 +17,4 @@ jobs: - run: echo "🍏 This job's status is ${{ job.status }}." - run: brew install node - run: npm install - - run: npm start - run: npm test From cc1a93ae98059ca0f256087e037fe20f651e3580 Mon Sep 17 00:00:00 2001 From: abhishek-at-dexcom <86683233+abhishek-at-dexcom@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:55:43 -0700 Subject: [PATCH 5/5] Fix response body --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 1631094..8f295a0 100644 --- a/app.js +++ b/app.js @@ -2,7 +2,7 @@ var express = require('express') var app = express() app.get('/', function (req, res) { - res.send('Hello Dexcom!') + res.send('Hello World!') }) -module.exports = app; \ No newline at end of file +module.exports = app;