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 20 uses: actions/setup-node@v4 with: node-version: '20' cache: npm cache-dependency-path: | package-lock.json playground/package-lock.json - name: Use npm 11.12.1 run: npm install -g npm@11.12.1 - 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 20 uses: actions/setup-node@v4 with: node-version: '20' cache: npm cache-dependency-path: | package-lock.json playground/package-lock.json - name: Use npm 11.12.1 run: npm install -g npm@11.12.1 - name: Install workspace dependencies and build packages run: | npm ci npm run build - name: Install playground dependencies run: | npm ci --prefix playground - name: Run playground checks run: | npm --prefix playground run lint npm --prefix playground run build npm --prefix playground run test env: CI: true