From 64342125b9f98e13253cef27d16084db525a7b6f Mon Sep 17 00:00:00 2001 From: Anshul Abrol Date: Mon, 23 Sep 2024 12:06:15 -0700 Subject: [PATCH] Add test cases and coverage check --- .github/workflows/check-pull-request.yml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/check-pull-request.yml diff --git a/.github/workflows/check-pull-request.yml b/.github/workflows/check-pull-request.yml new file mode 100644 index 0000000..df74699 --- /dev/null +++ b/.github/workflows/check-pull-request.yml @@ -0,0 +1,25 @@ +name: Check Pull Request + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test