joystream-cli.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: joystream-cli
  2. on: [pull_request, push]
  3. jobs:
  4. cli_build_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 build
  20. yarn workspace @joystream/cd-schemas generate:all
  21. yarn workspace @joystream/cd-schemas build
  22. yarn workspace @joystream/cli checks --quiet
  23. - name: yarn pack test
  24. run: |
  25. yarn workspace @joystream/cli pack --filename cli-pack-test.tgz
  26. tar zxvf ./cli/cli-pack-test.tgz -C cli
  27. cd ./cli/package && yarn link
  28. cli_build_osx:
  29. name: MacOS Checks
  30. runs-on: macos-latest
  31. strategy:
  32. matrix:
  33. node-version: [12.x]
  34. steps:
  35. - uses: actions/checkout@v1
  36. - name: Use Node.js ${{ matrix.node-version }}
  37. uses: actions/setup-node@v1
  38. with:
  39. node-version: ${{ matrix.node-version }}
  40. - name: checks
  41. run: |
  42. yarn install --frozen-lockfile --network-timeout 120000
  43. yarn workspace @joystream/types build
  44. yarn workspace @joystream/cd-schemas generate:all
  45. yarn workspace @joystream/cd-schemas build
  46. yarn workspace @joystream/cli checks --quiet
  47. - name: yarn pack test
  48. run: |
  49. yarn workspace @joystream/cli pack --filename cli-pack-test.tgz
  50. tar zxvf ./cli/cli-pack-test.tgz -C cli
  51. cd ./cli/package && yarn link