2023-03-16 18:43:49 +01:00
|
|
|
name: HLS tests
|
2021-10-07 06:03:48 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
2022-06-29 23:34:37 +02:00
|
|
|
- 'web/**'
|
2021-10-07 06:03:48 +02:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2022-06-29 23:34:37 +02:00
|
|
|
- 'web/**'
|
|
|
|
|
2021-10-07 06:03:48 +02: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 18:51:00 +01:00
|
|
|
tests:
|
2021-10-07 06:03:48 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-05 04:04:13 +01:00
|
|
|
|
2021-10-07 06:03:48 +02:00
|
|
|
steps:
|
2022-11-24 00:04:20 +01:00
|
|
|
- id: skip_check
|
|
|
|
uses: fkirc/skip-duplicate-actions@v5
|
|
|
|
with:
|
|
|
|
concurrent_skipping: 'same_content_newer'
|
2022-04-10 13:54:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-18 07:25:12 +01:00
|
|
|
- uses: actions/setup-go@v4
|
2021-10-11 23:56:00 +02:00
|
|
|
with:
|
2023-03-24 20:50:52 +01:00
|
|
|
go-version: '1.20'
|
2023-02-16 00:01:14 +01:00
|
|
|
cache: true
|
2023-01-23 06:07:49 +01:00
|
|
|
|
2023-02-15 23:46:45 +01:00
|
|
|
- name: Cache node modules
|
2023-03-15 03:13:59 +01:00
|
|
|
uses: actions/cache@v3
|
2023-02-15 23:46:45 +01: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 18:43:49 +01:00
|
|
|
- name: Local stroage
|
2023-01-23 06:07:49 +01:00
|
|
|
uses: nick-fields/retry@v2
|
|
|
|
with:
|
|
|
|
timeout_minutes: 10
|
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/hls && ./run.sh
|
2023-03-16 18:43:49 +01:00
|
|
|
|
|
|
|
- name: S3 storage
|
|
|
|
uses: nick-fields/retry@v2
|
|
|
|
with:
|
|
|
|
timeout_minutes: 10
|
|
|
|
max_attempts: 3
|
|
|
|
command: cd test/automated/hls && ./run-s3.sh
|