From 10743e2ae57c28dcab108b62443a521580f213b5 Mon Sep 17 00:00:00 2001 From: idan Date: Wed, 2 Oct 2024 14:18:55 +0300 Subject: [PATCH] Add callable unit testing --- .github/workflows/callable.tests.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/callable.tests.yml diff --git a/.github/workflows/callable.tests.yml b/.github/workflows/callable.tests.yml new file mode 100644 index 0000000..46a1baf --- /dev/null +++ b/.github/workflows/callable.tests.yml @@ -0,0 +1,30 @@ +name: Run tests + +on: + workflow_call: + +permissions: + contents: read + +jobs: + run_tests: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install Node.js dependencies + run: npm ci + + - name: Run tests + run: npm test \ No newline at end of file