From 3112a1f5c1defda127167699d6b07d8f7d1aefff Mon Sep 17 00:00:00 2001 From: Callum McIntyre Date: Tue, 4 Jun 2024 15:34:16 +0000 Subject: [PATCH] Run the unit tests in CI --- .github/workflows/pull-requests.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pull-requests.yml diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml new file mode 100644 index 00000000..606d3607 --- /dev/null +++ b/.github/workflows/pull-requests.yml @@ -0,0 +1,34 @@ +name: Pull requests + +on: + pull_request: + +jobs: + unit-test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./core + + strategy: + matrix: + node: + - "current" + - "lts/*" + + name: Run unit tests on Node ${{ matrix.node }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - name: Install Dependencies + run: npm install + + - name: Run unit tests + run: npm test