Run the unit tests in CI #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |