test.yml 601 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Test build
  2. on:
  3. pull_request:
  4. types: [ opened, reopened ]
  5. env:
  6. NODE: 20
  7. permissions:
  8. contents: read
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Clone repository
  14. uses: actions/checkout@v4
  15. - name: Set up Node.js
  16. uses: actions/setup-node@v4
  17. with:
  18. node-version: "${{ env.NODE }}"
  19. - name: Install PNPM
  20. uses: pnpm/action-setup@v4
  21. with:
  22. version: 8
  23. - run: node --version
  24. - name: Install pnpm dependencies
  25. run: pnpm install
  26. - name: Build
  27. run: pnpm run build