From 3f1f428811bf4478e680455149a925fa186b68e6 Mon Sep 17 00:00:00 2001 From: Alina Date: Wed, 13 Mar 2024 00:20:17 +0400 Subject: [PATCH] chore: add running unit tests workflow for push and pull requests --- .github/workflows/unit-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/unit-tests.yml diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 0000000..8f18f06 --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,21 @@ +name: Unit Tests + +on: + pull_request: + branches: + - [master] + push: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Install dependencies + run: npm install -g pnpm && pnpm install + - name: Run Unit tests + run: pnpm run test