owncast/.github/workflows/hls-tests.yml

58 lines
1.4 KiB
YAML
Raw Normal View History

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