test.yml 761 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: Test build
  2. on:
  3. pull_request:
  4. types: [ opened, reopened ]
  5. env:
  6. NODE: 18
  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. - name: Set up Ruby
  24. uses: ruby/setup-ruby@v1
  25. with:
  26. ruby-version: 3.2
  27. bundler-cache: true
  28. - run: ruby --version
  29. - run: node --version
  30. - name: Install pnpm dependencies
  31. run: pnpm install
  32. - name: Build
  33. run: pnpm run build