wip #22
This file contains hidden or 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: CI - Test | |
| on: | |
| pull_request: | |
| branches: | |
| - v1 # Runs on PRs against the `v1` branch | |
| push: | |
| branches: | |
| - v1 # Runs on pushes to `v1`, e.g., after merging PRs | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [14, 18, 23] # Test on Node.js versions 14, 18, and 23 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} # Use the Node.js version from the matrix | |
| - name: Install dependencies | |
| run: | | |
| npm install # Installs dependencies | |
| - name: Build the library | |
| run: npm run build # Runs your build script from package.json | |
| - name: Run tests | |
| run: npm test # Runs your test command (make sure your `package.json` includes a test script) |