From c513143db65883c8f3c3c8c8ebd68432f0dc1e4c Mon Sep 17 00:00:00 2001 From: Gauthier Fiorentino Date: Thu, 14 Mar 2024 14:49:18 +0100 Subject: [PATCH] CI: Adds the test step to CI --- .github/tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/tests.yml diff --git a/.github/tests.yml b/.github/tests.yml new file mode 100644 index 0000000..d1da92c --- /dev/null +++ b/.github/tests.yml @@ -0,0 +1,20 @@ +name: 'Run tests' + +on: [push, workflow_dispatch] + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v4 + with: +# TODO: add version to a .nvmrc or at least a variable + node-version: 16.13.x + cache: npm + - name: Install + run: npm ci + - name: Run tests + run: npm run test:unit