From bb05a8eceb9aa4d29a837c75215e51c0204736a9 Mon Sep 17 00:00:00 2001 From: Shubh Nisar Date: Thu, 19 Oct 2023 22:48:23 -0400 Subject: [PATCH] Local Updates --- .github/workflows/coverage.yml | 40 ++++++++++++++++------------------ 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6a65044b..8630a6bd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,6 +1,6 @@ name: Running Code Coverage -on: +on: pull_request: branches: ["master"] push: @@ -8,7 +8,6 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: @@ -16,28 +15,27 @@ jobs: node-version: [18.x] steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - fetch-depth: 2 - - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: | + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: | cd Code/backend npm install - - name: Run the tests - run: | + - name: Run the tests + run: | cd Code/backend npm test -- --coverage - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }}