linuxjs-tests.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Linux JS Tests
  2. on: [push, pull_request]
  3. jobs:
  4. linuxjs:
  5. name: JS
  6. strategy:
  7. matrix:
  8. group: [js-services, js-application, js-apputils, js-cells, js-codeeditor, js-codemirror, js-completer, js-console, js-coreutils, js-csvviewer, js-docmanager, js-docregistry, js-filebrowser, js-fileeditor, js-imageviewer, js-inspector, js-logconsole, js-mainmenu, js-nbformat, js-notebook, js-observables, js-outputarea, js-rendermime, js-settingregistry, js-statedb, js-statusbar, js-terminal, js-ui-components, js-testutils]
  9. fail-fast: false
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Set up Python
  14. uses: actions/setup-python@v1
  15. with:
  16. python-version: 3.8
  17. - name: Set up Node
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: '12.x'
  21. - name: Cache pip on Linux
  22. uses: actions/cache@v1
  23. if: startsWith(runner.os, 'Linux')
  24. with:
  25. path: ~/.cache/pip
  26. key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
  27. restore-keys: |
  28. ${{ runner.os }}-pip-${{ matrix.python }}
  29. # Cache yarn
  30. - name: Get yarn cache directory path
  31. id: yarn-cache-dir-path
  32. run: echo "::set-output name=dir::$(yarn cache dir)"
  33. - name: Cache yarn
  34. uses: actions/cache@v1
  35. id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
  36. with:
  37. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  38. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  39. restore-keys: |
  40. ${{ runner.os }}-yarn-
  41. - name: Install dependencies
  42. env:
  43. GROUP: ${{ matrix.group }}
  44. run: |
  45. bash ./scripts/ci_install.sh
  46. - name: Run test ${{ matrix.group }}
  47. env:
  48. GROUP: ${{ matrix.group }}
  49. run: |
  50. bash ./scripts/ci_script.sh