update package versions #23
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: Node.js CI 🚀 | |
# This workflow will do a clean install of node dependencies, build the project, and run tests across different versions of node | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: # 🏗️ Build Job | |
runs-on: ubuntu-latest # 🐧 Using the latest Ubuntu | |
strategy: | |
matrix: | |
node-version: [20.x, 21.x] # 📦 Test across Node.js versions 20.x and 21.x | |
steps: | |
- uses: actions/checkout@v3 # ✅ Checkout code | |
- name: Use Node.js ${{ matrix.node-version }} # 📌 Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci # 📦 Install dependencies | |
- run: npm run build --if-present # 🏗️ Build the project | |
- run: npm test # 🧪 Run tests | |
env: | |
CI: true # 🤖 CI mode |