From b9bda787b3d167249aecc08fc58d9be6a8c4701b Mon Sep 17 00:00:00 2001 From: Yash T <97667974+yashthipsay@users.noreply.github.com> Date: Thu, 8 Aug 2024 10:58:06 +0530 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3f1691a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: "Code Coverage on commit" +on: + push: + branches: + - main + + jobs: + tests: + name: "TestsOnCommits" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Setup Node.js + uses: actions.setup-node@v3 + with: + node-version: "16" + + - name: Install dependencies + working-directory: ./chain + shell: bash + run: npm install + + - name: Run tests + working-directory: ./chain + shell: bash + run: npm run test