joystream-node-checks.yml 885 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: joystream-node-checks
  2. on:
  3. pull_request:
  4. jobs:
  5. checks:
  6. name: joystream-node native build and checks
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v1
  10. - uses: actions/setup-node@v1
  11. with:
  12. node-version: '12.x'
  13. - uses: technote-space/get-diff-action@v3
  14. with:
  15. PREFIX_FILTER: |
  16. node
  17. runtime-modules
  18. utils/chain-spec-builder
  19. SUFFIX_FILTER: |
  20. .rs
  21. FILES: |
  22. Cargo.lock
  23. Cargo.toml
  24. # TODO: Look for change in source code but no corresponding version bump of runtime or binaries
  25. # - name: Check version modified correctly
  26. # if: env.GIT_DIFF
  27. - name: Build if runtime was modified
  28. run: |
  29. ./setup.sh
  30. yarn cargo-checks
  31. yarn cargo-build
  32. if: env.GIT_DIFF