0

Split local and S3 HLS tests

This commit is contained in:
Gabe Kangas 2023-03-16 10:43:49 -07:00 committed by GitHub
parent 3b87320c77
commit 1a5e9b496a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Automated HLS tests
name: HLS tests
on:
push:
@ -42,9 +42,16 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run HLS tests
- name: Local stroage
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: cd test/automated/hls && ./run.sh
- name: S3 storage
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: cd test/automated/hls && ./run-s3.sh

View File

@ -0,0 +1,35 @@
#!/bin/bash
set -e
# Determine if we should continue testing with S3 configuration.
if [[ -z "${S3_BUCKET}" ]]; then
echo "No S3 configuration is set. Skipping S3 tests!"
exit 0
fi
source ../tools.sh
# Install the node test framework
npm install --silent >/dev/null
install_ffmpeg
start_owncast
start_stream
sleep 10
# Run tests against a fresh install with no settings.
npm test
# Update the server config to use S3 for storage.
update_storage_config
start_stream
sleep 10
# Re-run the HLS test against the external storage configuration.
npm test