Skip to content

Commit

Permalink
Local Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubh-Nisar committed Oct 20, 2023
1 parent 67b5341 commit bb05a8e
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,41 @@
name: Running Code Coverage

on:
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
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 }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit bb05a8e

Please sign in to comment.