From 27bc1d8aa305e956b3e09dc2885d0d09e73573cb Mon Sep 17 00:00:00 2001 From: kreimera02 <79824530+kreimera02@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:04:18 -0400 Subject: [PATCH 1/3] Update test.yaml --- .github/workflows/test.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 769f4de..c5ff85e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,2 +1,24 @@ # name: test -# Fill in the necessary code to run the jest test script whenever a pull request is opened or updated \ No newline at end of file +# Fill in the necessary code to run the jest test script whenever a pull request is opened or updated +name: test +on: + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use node 18.x + uses: actions/setup-node@v2 + with: + node-version: 18.X + + - name: Install dependencies + run: npm ci + + - name: jest + run: npm run jest \ No newline at end of file From 02d698ebaf0267acb9c945930c79aa95cf1cadbc Mon Sep 17 00:00:00 2001 From: kreimera02 <79824530+kreimera02@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:17:00 -0400 Subject: [PATCH 2/3] Update test.yaml --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c5ff85e..04b5b79 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,4 +21,4 @@ jobs: run: npm ci - name: jest - run: npm run jest \ No newline at end of file + run: npm run test \ No newline at end of file From ba857a648f5d8a1e57b3f8c8da3a76aa94a9ad28 Mon Sep 17 00:00:00 2001 From: kreimera02 <79824530+kreimera02@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:21:53 -0400 Subject: [PATCH 3/3] new test --- .github/workflows/test.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 04b5b79..79c04a0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,24 +1,24 @@ -# name: test -# Fill in the necessary code to run the jest test script whenever a pull request is opened or updated -name: test +name: Jest Tests + on: pull_request: - branches: [ main ] + branches: + - main # Adjust this to your main branch name jobs: - test: + build: runs-on: ubuntu-latest + steps: - - name: Checkout - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v2 - - name: Use node 18.x + - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: 18.X + node-version: 14 # Adjust to your Node.js version - name: Install dependencies - run: npm ci + run: npm install - - name: jest - run: npm run test \ No newline at end of file + - name: Run Jest tests \ No newline at end of file