joystream-cli.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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/cli checks --quiet
  21. - name: yarn pack test
  22. run: |
  23. yarn workspace @joystream/cli pack --filename cli-pack-test.tgz
  24. tar zxvf ./cli/cli-pack-test.tgz -C cli
  25. cd ./cli/package && yarn link
  26. cli_build_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 build
  42. yarn workspace @joystream/cli checks --quiet
  43. - name: yarn pack test
  44. run: |
  45. yarn workspace @joystream/cli pack --filename cli-pack-test.tgz
  46. tar zxvf ./cli/cli-pack-test.tgz -C cli
  47. cd ./cli/package && yarn link