refactor(chore): standardize node version to \>=20 #29
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 | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| # This workflow contains a single job called "npm_test" | |
| jobs: | |
| npm_test: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| # Strategy to run the job on multiple Node.js versions | |
| strategy: | |
| matrix: | |
| node-version: [20, 22, 24] | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE | |
| - uses: actions/checkout@v3 | |
| # Sets up the Node.js environment for the version specified in the matrix | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Dependencies 📌 | |
| run: npm ci | |
| - name: Run Test Cases 🔧 | |
| run: npm run test |