ci-turbo-test.yml 919 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Turbo test
  2. on:
  3. pull_request:
  4. paths:
  5. - "**.tsx?"
  6. - "**.jsx?"
  7. - "**.json"
  8. - "**.sol"
  9. - "**/package.json"
  10. - "**/package-lock.json"
  11. - "**/tsconfig.json"
  12. push:
  13. branches: [main]
  14. jobs:
  15. test:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - uses: actions/checkout@v4
  19. - uses: actions/setup-node@v4
  20. with:
  21. node-version-file: "package.json"
  22. # Libusb is a build requirement for the node-hid package and so pnpm
  23. # install will fail if this isn't in the build environment and if a
  24. # precompiled binary isn't found.
  25. - name: Install libusb
  26. run: sudo apt install -y libusb-1.0-0-dev libudev-dev
  27. - uses: pnpm/action-setup@v4
  28. name: Install pnpm
  29. with:
  30. run_install: true
  31. - name: Cache for Turbo
  32. uses: rharkor/caching-for-turbo@v1.5
  33. - name: Test
  34. run: pnpm turbo test