| 12345678910111213141516171819202122232425262728293031 |
- name: Run npm Tests
- on:
- workflow_dispatch:
- push:
- branches: [ "main" ]
- pull_request:
- branches: [ "main" ]
- jobs:
- test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [22, 23]
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
- - name: Set up Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v3
- with:
- node-version: ${{ matrix.node-version }}
- - name: Install dependencies
- run: npm install
- - name: Run tests
- run: npm test
|