joystream-cli.yml 1.6 KB

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