From 1d3f2ee0924efe379b0c73c3eb108ac9fdb81ef6 Mon Sep 17 00:00:00 2001 From: Ines Pacheco <84067326+itandehuih@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:50:38 -0700 Subject: [PATCH 1/2] Update unit_tests.yml --- .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 5c070e8a3f0ab5542ec4396c2f2835720b9af0d3 Mon Sep 17 00:00:00 2001 From: Ines Pacheco <84067326+itandehuih@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:56:55 -0700 Subject: [PATCH 2/2] Update unit_tests.yml --- .github/workflows/unit_tests.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index a1afc72..43360d6 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,17 +1,13 @@ name: Unit Tests on: [push] jobs: - Explore-GitHub-Actions: + 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 }}." + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '14' + - run: npm install -g mocha + - run: mocha -v + - run: npm test