Skip to content

Fixed test and lint workflow #1865

Fixed test and lint workflow

Fixed test and lint workflow #1865

Workflow file for this run

name: Unit Tests
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- contentstack
- contentstack-command
- contentstack-config
- contentstack-auth
- contentstack-utilities
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.28.0
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm -r --sort run build
- name: Test ${{ matrix.package }}
working-directory: ./packages/${{ matrix.package }}
run: pnpm test