Skip to content

fix errors & update workflow #26

fix errors & update workflow

fix errors & update workflow #26

name: Run Test on Multiple Node Versions
on:
push:
branches:
- main
- 'feature/*'
- 'bugfix/*'
pull_request:
branches:
- main
- 'feature/*'
- 'bugfix/*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.18.0, 18.20.4, 22.11.0, 19.9.0, 23.1.0] # we dont support bellow v18
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Test api code
run: cd ./apps/api && pnpm test && cd ../..
# - name: Run tests
# run: pnpm test