From ff6d12e97201c4baf9c9b5e89cb23420f567d77b Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Thu, 3 Oct 2024 18:12:46 -0400 Subject: [PATCH] Copilot gave me a parallelized test script (front back)-end --- .github/workflows/tests.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b323795..72d1741 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Frontend Tests +name: Tests on: pull_request: @@ -9,7 +9,7 @@ on: - main jobs: - frontend-test: + tests: runs-on: ubuntu-latest steps: @@ -19,12 +19,14 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '18' - - name: Install Dependencies - run: npm ci - working-directory: ./client + - name: Install Dependencies and Run Tests + run: | + npm ci + npm test + working-directory: ${{ matrix.directory }} - - name: Run Tests - run: npm test - working-directory: ./client + strategy: + matrix: + directory: [client, server]