diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7c64a8..bc917fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ "main", "master"] + branches: [ "main", "master", 'dev'] pull_request: - branches: [ "main", "master"] + branches: [ "main", "master", 'dev'] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -40,7 +40,7 @@ jobs: mkdir -p video echo "Downloading sample video..." # Using a reliable test video source (Big Buck Bunny stable link) - curl -L -o video/test.mp4 https://test-videos.co.uk/vids/bigbuckbunny/mp4/av1/1080/Big_Buck_Bunny_1080_10s_5MB.mp4 + curl -L -o video/test.mp4 https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_5MB.mp4 ls -lh video/ # 4. Run the Test Script diff --git a/test/ffmpeg.test.sh b/test/ffmpeg.test.sh index e5fcd27..df6c028 100644 --- a/test/ffmpeg.test.sh +++ b/test/ffmpeg.test.sh @@ -113,6 +113,7 @@ run_transcode_test() { # Prepare output directory mkdir -p "${OUTPUT_DIR}" + chmod 777 "${OUTPUT_DIR}" rm -f "${output_file}" log_info "Starting transcoding process (Memory Limit: ${CONTAINER_MEM_LIMIT})..." @@ -159,6 +160,7 @@ run_hls_test() { local hls_root="${OUTPUT_DIR}/hls" rm -rf "${hls_root}" mkdir -p "${hls_root}"/{360p,720p,1080p} + chmod -R 777 "${hls_root}" # Define common options to reduce repetition local docker_opts="--rm --memory=${CONTAINER_MEM_LIMIT} --cpus=${CONTAINER_CPU_LIMIT} -v $(pwd)/${VIDEO_DIR}:/input:ro -v $(pwd)/${OUTPUT_DIR}/hls:/output"