joystream-types.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: joystream-types
  2. on: [pull_request, push]
  3. jobs:
  4. types_checks_ubuntu:
  5. name: Ubuntu Checks
  6. runs-on: ubuntu-latest
  7. strategy:
  8. matrix:
  9. node-version: [14.x]
  10. steps:
  11. - uses: actions/checkout@v1
  12. - name: Use Node.js ${{ matrix.node-version }}
  13. uses: actions/setup-node@v1
  14. with:
  15. node-version: ${{ matrix.node-version }}
  16. - name: checks
  17. run: |
  18. yarn install --frozen-lockfile
  19. yarn workspace @joystream/types build
  20. yarn workspace @joystream/types checks --quiet
  21. - name: npm pack test
  22. run: |
  23. cd types
  24. npm pack | tail -1 | xargs tar xzf
  25. cd package && npm install
  26. node ./index.js
  27. types_checks_osx:
  28. name: MacOS Checks
  29. runs-on: macos-latest
  30. strategy:
  31. matrix:
  32. node-version: [14.x]
  33. steps:
  34. - uses: actions/checkout@v1
  35. - name: Use Node.js ${{ matrix.node-version }}
  36. uses: actions/setup-node@v1
  37. with:
  38. node-version: ${{ matrix.node-version }}
  39. - name: checks
  40. run: |
  41. yarn install --frozen-lockfile --network-timeout 120000
  42. yarn workspace @joystream/types build
  43. yarn workspace @joystream/types checks --quiet
  44. - name: npm pack test
  45. run: |
  46. cd types
  47. npm pack | tail -1 | xargs tar xzf
  48. cd package && npm install
  49. node ./index.js