test.yml 685 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: Set up Ruby
  21. uses: ruby/setup-ruby@v1
  22. with:
  23. ruby-version: 2.6
  24. bundler-cache: true
  25. - run: ruby --version
  26. - run: node --version
  27. - name: Install pnpm dependencies
  28. run: pnpm install
  29. - name: Build
  30. run: pnpm run build