From 184daa1ccff548a3205412bfb7345f7988145c5c 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 | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 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..d84dc388 --- /dev/null +++ b/.github/workflows/pull-requests.yml @@ -0,0 +1,31 @@ +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: Install Dependencies + uses: ./.github/workflows/actions/install-dependencies + with: + version: ${{ matrix.node }} + + - name: Run unit tests + run: npm test