linuxjs-flaky-tests.yml 1.7 KB

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