linuxjs-tests.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Linux JS Tests
  2. on:
  3. push:
  4. branches: [3.3.x]
  5. pull_request:
  6. branches: [3.3.x]
  7. release:
  8. types: [published]
  9. jobs:
  10. linuxjs:
  11. name: JS
  12. strategy:
  13. matrix:
  14. group: [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]
  15. fail-fast: false
  16. runs-on: ubuntu-20.04
  17. timeout-minutes: 20
  18. steps:
  19. - uses: actions/checkout@v2
  20. - name: Set up Python
  21. uses: actions/setup-python@v1
  22. with:
  23. python-version: 3.8
  24. - name: Set up Node
  25. uses: actions/setup-node@v1
  26. with:
  27. node-version: '12.x'
  28. - name: Cache pip on Linux
  29. uses: actions/cache@v1
  30. if: startsWith(runner.os, 'Linux')
  31. with:
  32. path: ~/.cache/pip
  33. key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt', 'setup.py') }}
  34. restore-keys: |
  35. ${{ runner.os }}-pip-${{ matrix.python }}
  36. # Cache yarn
  37. - name: Get yarn cache directory path
  38. id: yarn-cache-dir-path
  39. run: echo "::set-output name=dir::$(yarn cache dir)"
  40. - name: Cache yarn
  41. uses: actions/cache@v1
  42. id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
  43. with:
  44. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  45. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  46. restore-keys: |
  47. ${{ runner.os }}-yarn-
  48. - name: Install dependencies
  49. env:
  50. GROUP: ${{ matrix.group }}
  51. run: |
  52. bash ./scripts/ci_install.sh
  53. - name: Run test ${{ matrix.group }}
  54. env:
  55. GROUP: ${{ matrix.group }}
  56. run: |
  57. bash ./scripts/ci_script.sh