From ef5a1b6a43d25cafc658e2b3a20e36d42e47e25e Mon Sep 17 00:00:00 2001 From: slashexx Date: Sat, 2 Nov 2024 20:58:51 +0530 Subject: [PATCH] Fix workflow 3 --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f21992d..3796909 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,28 +1,32 @@ name: CI on: - push: - branches: - main - pull_request: - branches: - main + push: + branches: + - main + pull_request: + branches: + - main jobs: - test: - runs-on: ubuntu-latest + test: + runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 + steps: + - name: Checkout repository + uses: actions/checkout@v3 - - name: Set up Node - uses: actions/setup-node@v3 - with: - node-version: '20.15.1' + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: '20.15.1' - - name : Install dependencies and run - run: | - cd frontend/ - npm install --legacy-deps - npm test \ No newline at end of file + - name: Install dependencies + run: | + cd frontend/ + npm install --legacy-peer-deps + + - name: Run tests + run: | + cd frontend/ + npm test