hls-tests.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name: HLS tests
  2. on:
  3. push:
  4. paths-ignore:
  5. - 'web/**'
  6. pull_request:
  7. paths-ignore:
  8. - 'web/**'
  9. env:
  10. S3_BUCKET: ${{ secrets.S3_BUCKET }}
  11. S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
  12. S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
  13. S3_REGION: ${{ secrets.S3_REGION }}
  14. S3_SECRET: ${{ secrets.S3_SECRET }}
  15. jobs:
  16. tests:
  17. runs-on: ubuntu-latest
  18. steps:
  19. - id: skip_check
  20. uses: fkirc/skip-duplicate-actions@v5
  21. with:
  22. concurrent_skipping: 'same_content_newer'
  23. - uses: actions/checkout@v3
  24. - uses: actions/setup-go@v4
  25. with:
  26. go-version: '1.20'
  27. cache: true
  28. - name: Cache node modules
  29. uses: actions/cache@v3
  30. env:
  31. cache-name: cache-node-modules-hls-tests
  32. with:
  33. path: ~/.npm
  34. key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/hls/package-lock.json') }}
  35. restore-keys: |
  36. ${{ runner.os }}-build-${{ env.cache-name }}-
  37. ${{ runner.os }}-build-
  38. ${{ runner.os }}-
  39. - name: Local stroage
  40. uses: nick-fields/retry@v2
  41. with:
  42. timeout_minutes: 10
  43. max_attempts: 3
  44. command: cd test/automated/hls && ./run.sh
  45. - name: S3 storage
  46. uses: nick-fields/retry@v2
  47. with:
  48. timeout_minutes: 10
  49. max_attempts: 3
  50. command: cd test/automated/hls && ./run-s3.sh