2023-03-16 10:43:49 -07:00
|
|
|
name: HLS tests
|
2021-10-06 21:03:48 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
2022-06-29 14:34:37 -07:00
|
|
|
- 'web/**'
|
2021-10-06 21:03:48 -07:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2022-06-29 14:34:37 -07:00
|
|
|
- 'web/**'
|
|
|
|
|
2021-10-06 21:03:48 -07:00
|
|
|
env:
|
|
|
|
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
|
|
|
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
|
|
|
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
|
|
|
S3_REGION: ${{ secrets.S3_REGION }}
|
|
|
|
S3_SECRET: ${{ secrets.S3_SECRET }}
|
|
|
|
|
|
|
|
jobs:
|
2023-03-16 10:51:00 -07:00
|
|
|
tests:
|
2021-10-06 21:03:48 -07:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-04 20:04:13 -07:00
|
|
|
|
2021-10-06 21:03:48 -07:00
|
|
|
steps:
|
2022-11-23 15:04:20 -08:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
2023-10-07 13:52:25 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-19 17:51:40 -08:00
|
|
|
- uses: actions/setup-go@v5
|
2021-10-11 14:56:00 -07:00
|
|
|
with:
|
2023-10-17 18:32:50 -07:00
|
|
|
go-version: '1.21'
|
2023-02-15 15:01:14 -08:00
|
|
|
cache: true
|
2023-01-22 21:07:49 -08:00
|
|
|
|
2023-02-15 14:46:45 -08:00
|
|
|
- name: Cache node modules
|
2024-03-03 18:45:28 -08:00
|
|
|
uses: actions/cache@v4
|
2023-02-15 14:46:45 -08:00
|
|
|
env:
|
|
|
|
cache-name: cache-node-modules-hls-tests
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/automated/hls/package-lock.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
${{ runner.os }}-build-
|
|
|
|
${{ runner.os }}-
|
|
|
|
|
2023-03-16 10:43:49 -07:00
|
|
|
- name: Local stroage
|
2024-04-09 18:23:40 -07:00
|
|
|
uses: nick-fields/retry@v3
|
2023-01-22 21:07:49 -08:00
|
|
|
with:
|
|
|
|
timeout_minutes: 10
|
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/hls && ./run.sh
|
2023-03-16 10:43:49 -07:00
|
|
|
|
|
|
|
- name: S3 storage
|
2024-04-09 18:23:40 -07:00
|
|
|
uses: nick-fields/retry@v3
|
2023-03-16 10:43:49 -07:00
|
|
|
with:
|
|
|
|
timeout_minutes: 10
|
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/hls && ./run-s3.sh
|