name: Testing on: [pull_request] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: pdfme-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js 24 uses: actions/setup-node@v4 with: node-version: '24' cache: npm cache-dependency-path: | package-lock.json playground/package-lock.json - run: npm ci - run: npm run typecheck - run: ./node_modules/.bin/vp run --filter '@pdfme/*' lint - run: npm run build - run: npm run test env: CI: true playground-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js 24 uses: actions/setup-node@v4 with: node-version: '24' cache: npm cache-dependency-path: | package-lock.json playground/package-lock.json - name: Install workspace dependencies and build packages run: | npm ci npm run build - name: Install playground dependencies run: | npm ci --prefix playground - name: Install Puppeteer Chrome run: npm --prefix playground exec -- puppeteer browsers install chrome - name: Run playground checks run: | npm --prefix playground run lint npm --prefix playground run build npm --prefix playground run test env: CI: true