Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ on:
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
node_matrix_tests:
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
strategy:
matrix:
node-version: [20, 22, 24]
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install Dependencies 📌
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci

- name: Run Test Cases 🔧
- name: Run Test Cases
run: npm run test

npm_test:
runs-on: ubuntu-latest
needs: node_matrix_tests
if: success()
steps:
- name: Final status
run: echo "✅ All tests passed for Node.js 20, 22, and 24"
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '20.x'
- name: Configure CI Git User
run: |
git config --global user.name $CONFIG_USERNAME
Expand Down
Loading