joystream-types.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: [12.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 checks
  20. - name: npm pack test
  21. run: |
  22. cd types
  23. npm pack | tail -1 | xargs tar xzf
  24. cd package && npm install
  25. node ./index.js
  26. types_checks_osx:
  27. name: MacOS Checks
  28. runs-on: macos-latest
  29. strategy:
  30. matrix:
  31. node-version: [12.x]
  32. steps:
  33. - uses: actions/checkout@v1
  34. - name: Use Node.js ${{ matrix.node-version }}
  35. uses: actions/setup-node@v1
  36. with:
  37. node-version: ${{ matrix.node-version }}
  38. - name: checks
  39. run: |
  40. yarn install --frozen-lockfile --network-timeout 120000
  41. yarn workspace @joystream/types checks
  42. - name: npm pack test
  43. run: |
  44. cd types
  45. npm pack | tail -1 | xargs tar xzf
  46. cd package && npm install
  47. node ./index.js