test.yml 783 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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@v3
  15. - name: Set up Node.js
  16. uses: actions/setup-node@v3
  17. with:
  18. node-version: "${{ env.NODE }}"
  19. cache: pnpm
  20. - name: Install PNPM
  21. uses: pnpm/action-setup@v2
  22. with:
  23. version: 7
  24. - name: Set up Ruby
  25. uses: ruby/setup-ruby@v1
  26. with:
  27. ruby-version: 2.6
  28. bundler-cache: true
  29. - run: ruby --version
  30. - run: node --version
  31. - name: Install pnpm dependencies
  32. run: pnpm install
  33. - name: Build
  34. run: pnpm run build