Skip to content

chore: add matrix in github actions #5

chore: add matrix in github actions

chore: add matrix in github actions #5

Workflow file for this run

name: Run Tests
on:
push:
branches: ["main", "develop"]
jobs:
unit-test:
strategy:
matrix:
node-version: [18, 22]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- name: Install Yarn Package Manager
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test