linuxjs-tests.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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-cells, js-codeeditor, js-codemirror, js-completer, js-console, js-coreutils, js-csvviewer, js-debugger, js-docmanager, js-docregistry, js-documentsearch, 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-toc, js-translation, js-ui-components, js-testutils]
  9. fail-fast: false
  10. runs-on: ubuntu-latest
  11. timeout-minutes: 20
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up Python
  15. uses: actions/setup-python@v1
  16. with:
  17. python-version: 3.8
  18. - name: Set up Node
  19. uses: actions/setup-node@v1
  20. with:
  21. node-version: '12.x'
  22. - name: Cache pip on Linux
  23. uses: actions/cache@v1
  24. if: startsWith(runner.os, 'Linux')
  25. with:
  26. path: ~/.cache/pip
  27. key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt', 'setup.py') }}
  28. restore-keys: |
  29. ${{ runner.os }}-pip-${{ matrix.python }}
  30. # Cache yarn
  31. - name: Get yarn cache directory path
  32. id: yarn-cache-dir-path
  33. run: echo "::set-output name=dir::$(yarn cache dir)"
  34. - name: Cache yarn
  35. uses: actions/cache@v1
  36. id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
  37. with:
  38. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  39. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  40. restore-keys: |
  41. ${{ runner.os }}-yarn-
  42. - name: Install dependencies
  43. env:
  44. GROUP: ${{ matrix.group }}
  45. run: |
  46. bash ./scripts/ci_install.sh
  47. - name: Run test ${{ matrix.group }}
  48. env:
  49. GROUP: ${{ matrix.group }}
  50. run: |
  51. bash ./scripts/ci_script.sh