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