A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: yml formatting and auto label
aminnausin6c7dce382008
diff --git a/.github/labeler.yml b/.github/labeler.ymlnew file mode 100644index 00000000..27d93fc6--- /dev/null+++ b/.github/labeler.yml@@ -0,0 +1,35 @@+tests:+- changed-files:+ - any-glob-to-any-file:+ - '**/*.spec.*'+ - '**/*.test.*'+ - 'tests/**/**'++ci:+- changed-files:+ - any-glob-to-any-file:+ - '.github/workflows/**/**'++ui:+- changed-files:+ - any-glob-to-any-file:+ - 'resources/**/**'++laravel:+- changed-files:+ - any-glob-to-any-file:+ - '**/*.php'++database:+- changed-files:+ - any-glob-to-any-file:+ - 'database/**/*.php'++docker:+- changed-files:+ - any-glob-to-any-file:+ - 'docker/**/**'+ - '.dockerignore'+ - 'docker-compose.yaml'+ - 'DockerFile'+ - 'startDocker.*'diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.ymlnew file mode 100644index 00000000..50f7a48e--- /dev/null+++ b/.github/workflows/auto-label.yml@@ -0,0 +1,15 @@+name: 'Auto Label'++on:+- pull_request_target++jobs:+ auto-label:+ permissions:+ contents: read+ pull-requests: write+ runs-on: ubuntu-latest+ steps:+ - uses: actions/labeler@v5+ with:+ configuration-path: .github/auto-label.ymldiff --git a/.github/workflows/ci-docker-release.yml b/.github/workflows/ci-docker-release.ymlindex 1c5382f4..671ed79c 100644--- a/.github/workflows/ci-docker-release.yml+++ b/.github/workflows/ci-docker-release.yml@@ -1,322 +1,322 @@name: CI & Docker Releaseon:- push:- branches: ['dev', 'main']- workflow_dispatch:- inputs:- bump:- description: 'Version bump type'- required: true- default: 'patch'- type: choice- options:- - major- - minor- - patch+ push:+ branches: [ 'dev', 'main' ]+ workflow_dispatch:+ inputs:+ bump:+ description: 'Version bump type'+ required: true+ default: 'patch'+ type: choice+ options:+ - major+ - minor+ - patchjobs:- # ==========================- # PHP Linting (Laravel Pint)- # ==========================- check-php-changes:- runs-on: ubuntu-latest- outputs:- php_changed: ${{ steps.filter.outputs.changes != '[]' }}- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Detect PHP file changes- id: filter- uses: dorny/paths-filter@v2- with:- filters: |- php_changed:- - '**/*.php'-- laravel-pint:- needs: [check-php-changes]- runs-on: ubuntu-latest- if: needs.check-php-changes.outputs.php_changed == 'true'- permissions:- contents: write- strategy:- fail-fast: true- matrix:- php: [8.4]-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Setup PHP- uses: shivammathur/setup-php@v2- with:- php-version: ${{ matrix.php }}- extensions: json, dom, curl, libxml, mbstring- coverage: none-- - name: Install Pint- run: composer global require laravel/pint-- - name: Run Pint- run: pint --test || (pint && touch linted)-- - name: Commit linted files- if: success() && hashFiles('linted') != ''- uses: stefanzweifel/git-auto-commit-action@v5- with:- commit_message: 'chore: lint coding style (pint)'-- # ==========================- # Laravel Tests- # ==========================- laravel-tests:- needs: [laravel-pint]- runs-on: ubuntu-latest+ # ==========================+ # PHP Linting (Laravel Pint)+ # ==========================+ check-php-changes:+ runs-on: ubuntu-latest+ outputs:+ php_changed: ${{ steps.filter.outputs.changes != '[]' }}+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Detect PHP file changes+ id: filter+ uses: dorny/paths-filter@v2+ with:+ filters: |+ php_changed:+ - '**/*.php'++ laravel-pint:+ needs: [ check-php-changes ]+ runs-on: ubuntu-latest+ if: needs.check-php-changes.outputs.php_changed == 'true'+ permissions:+ contents: write+ strategy:+ fail-fast: true+ matrix:+ php: [ 8.4 ]++ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Setup PHP+ uses: shivammathur/setup-php@v2+ with:+ php-version: ${{ matrix.php }}+ extensions: json, dom, curl, libxml, mbstring+ coverage: none++ - name: Install Pint+ run: composer global require laravel/pint++ - name: Run Pint+ run: pint --test || (pint && touch linted)++ - name: Commit linted files+ if: success() && hashFiles('linted') != ''+ uses: stefanzweifel/git-auto-commit-action@v5+ with:+ commit_message: 'chore: lint coding style (pint)'++ # ==========================+ # Laravel Tests+ # ==========================+ laravel-tests:+ needs: [ laravel-pint ]+ runs-on: ubuntu-latest+ env:+ DB_CONNECTION: pgsql+ DB_HOST: localhost+ DB_PORT: 5432+ DB_PASSWORD: postgres+ DB_USERNAME: postgres+ DB_DATABASE: postgres++ services:+ postgres:+ image: postgres:latestenv:- DB_CONNECTION: pgsql- DB_HOST: localhost- DB_PORT: 5432- DB_PASSWORD: postgres- DB_USERNAME: postgres- DB_DATABASE: postgres-- services:- postgres:- image: postgres:latest- env:- POSTGRES_USER: postgres- POSTGRES_PASSWORD: postgres- POSTGRES_DB: postgres-- ports:- - 5432:5432- options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3-- steps:- - name: Set up Node.js- uses: actions/setup-node@v3-- - name: Set up PHP- uses: shivammathur/setup-php@v2- with:- php-version: '8.4'- extensions: pgsql-- - uses: actions/checkout@v4-- - name: Copy .env- run: php -r "file_exists('.env') || copy('.env.example', '.env');"-- - name: Install Dependencies- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist-- - name: Install node dependencies- run: npm ci-- - name: Generate key- run: php artisan key:generate-- - name: Generate Reverb Keys- run: php artisan reverb:generate-- - name: Directory Permissions- run: chmod -R 777 storage bootstrap/cache-- - name: Run Migration- run: php artisan migrate -v- env:- DB_PORT: 5432-- - name: Build- run: npm run build-- - name: Lint- run: npm run lint -- --fix-- - name: Execute tests (Unit and Feature tests) via PHPUnit/Pest- run: php artisan test- # ==========================- # Generate Release Tags- # ==========================- get-release-tags:- name: Generate Release Tags- runs-on: ubuntu-latest- needs: [laravel-tests]- if: success()- permissions:- contents: write- strategy:- fail-fast: true- outputs:- tag: ${{ steps.set_release_info.outputs.TAG }}- docker-tag: ${{ steps.set_release_info.outputs.DOCKER_TAG}}- prerelease: ${{ steps.set_release_info.outputs.PRERELEASE }}- steps:- - name: Checkout Repository- uses: actions/checkout@v4-- - name: Ensure VERSION file exists- run: |- VERSION_FILE="VERSION"- if [ ! -f "$VERSION_FILE" ]; then- echo "0.1.0" > "$VERSION_FILE"- fi- - name: Fetch full git history and tags- run: |- git fetch --unshallow --tags || git fetch --tags- - name: Set Release Tag and Prerelease Status- id: set_release_info- run: |- VERSION_FILE="VERSION"- CURRENT_VERSION=$(cat $VERSION_FILE)- IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"-- PRERELEASE=false- DOCKER_TAG=""- TAG=""-- if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then-- #Only increase patch version if merging feature branch to dev- IS_MERGE=$(git log -1 --pretty=%P | wc -w)- if [ "$IS_MERGE" -gt 1 ]; then- PATCH=$((PATCH + 1))- fi-- NEW_VERSION="$MAJOR.$MINOR.$PATCH"-- #Increase build number all the time-- LAST_BETA=$(git tag --list "${NEW_VERSION}-beta.[0-9]*" | sed -E "s/.*-beta\.//" | sort -V | tail -n1)- LAST_BETA=${LAST_BETA:-0}- BUILD_COUNT=$((LAST_BETA + 1))-- TAG="${NEW_VERSION}-beta.${BUILD_COUNT}"- DOCKER_TAG="beta"- PRERELEASE=true- elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then- if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then- INCREMENT="${{ github.event.inputs.bump }}"- INCREMENT="${INCREMENT:-patch}"-- case $INCREMENT in- major)- MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;- minor)- MINOR=$((MINOR + 1)); PATCH=0 ;;- patch|*)- PATCH=$((PATCH + 1)) ;;- esac-- #just remove minor tags like 'b' when auto releasing to-- fi- NEW_VERSION="$MAJOR.$MINOR.$PATCH"- TAG="$NEW_VERSION"- DOCKER_TAG="latest"- fi-- echo "$NEW_VERSION" > $VERSION_FILE-- echo "::notice title=Version Info::Branch: ${{ github.ref }}, Tag: $TAG, Prerelease: $PRERELEASE"-- echo "TAG=$TAG" >> $GITHUB_OUTPUT- echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_OUTPUT- echo "PRERELEASE=$PRERELEASE" >> $GITHUB_OUTPUT-- - name: Commit updated VERSION file and manifest- uses: stefanzweifel/git-auto-commit-action@v5- with:- commit_message: 'chore: bump version to ${{ steps.set_release_info.outputs.TAG }}'- file_pattern: |- VERSION- # ==========================- # Publish Docker Image- # ==========================- build-docker:- name: Build Docker Image- runs-on: ubuntu-latest- needs: [get-release-tags]- permissions:- contents: write- steps:- - name: Checkout Repository- uses: actions/checkout@v4-- - name: Update .env.docker- run: |- sed -i "s/DOCKER_RELEASE=.*/DOCKER_RELEASE=${{ needs.get-release-tags.outputs.docker-tag }}/" docker/.env.docker- - name: Login to Docker Hub- uses: docker/login-action@v3- with:- username: ${{ secrets.DOCKER_HUB_USERNAME }}- password: ${{ secrets.DOCKER_HUB_TOKEN }}-- - name: Push to Docker Hub- uses: docker/build-push-action@v5- with:- push: true- tags: |- aminnausin/mediaserver:${{ needs.get-release-tags.outputs.docker-tag }}- aminnausin/mediaserver:${{ needs.get-release-tags.outputs.tag }}- # ==========================- # Check for Docker Changes- # ==========================- check-docker-changes:- name: Check for Docker Related File Changes- needs: [laravel-tests]- if: needs.laravel-tests.result == 'success'- runs-on: ubuntu-latest- outputs:- files_changed: ${{ steps.filter.outputs.changes != '[]' }}- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Check for file changes- id: filter- uses: dorny/paths-filter@v2- with:- filters: |- changed:- - 'docker/**'- - 'docker-compose.yaml'- - 'Dockerfile'- - 'startDocker.*'- - 'data/**'- - 'README.md'-- # ==========================- # Release Docker Setup Pkg- # ==========================- release:- name: Create GitHub Release- runs-on: ubuntu-latest- needs: [build-docker, check-docker-changes, get-release-tags]- if: needs.check-docker-changes.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch'- permissions:- contents: write- steps:- - name: Checkout Repository- uses: actions/checkout@v4-- - name: Zip Files Linux- run: |- zip -r mediaServerDockerLinux.zip ./docker/etc ./docker/.env.docker ./docker-compose.yaml ./startDocker.sh ./README.md ./data/*-- - name: Zip Files Windows- run: |- zip -r mediaServerDockerWindows.zip ./docker/etc ./docker/.env.docker ./docker-compose.yaml ./startDocker.bat ./README.md ./data/*- - name: Create Release- uses: ncipollo/release-action@v1- with:- allowUpdates: false- token: ${{ secrets.GITHUB_TOKEN }}- tag: ${{ needs.get-release-tags.outputs.tag }}- name: Docker Release - ${{ needs.get-release-tags.outputs.tag }}- draft: false- prerelease: ${{ needs.get-release-tags.outputs.prerelease }}- artifacts: mediaServerDockerLinux.zip,mediaServerDockerWindows.zip+ POSTGRES_USER: postgres+ POSTGRES_PASSWORD: postgres+ POSTGRES_DB: postgres++ ports:+ - 5432:5432+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3++ steps:+ - name: Set up Node.js+ uses: actions/setup-node@v3++ - name: Set up PHP+ uses: shivammathur/setup-php@v2+ with:+ php-version: '8.4'+ extensions: pgsql++ - uses: actions/checkout@v4++ - name: Copy .env+ run: php -r "file_exists('.env') || copy('.env.example', '.env');"++ - name: Install Dependencies+ run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist++ - name: Install node dependencies+ run: npm ci++ - name: Generate key+ run: php artisan key:generate++ - name: Generate Reverb Keys+ run: php artisan reverb:generate++ - name: Directory Permissions+ run: chmod -R 777 storage bootstrap/cache++ - name: Run Migration+ run: php artisan migrate -v+ env:+ DB_PORT: 5432++ - name: Build+ run: npm run build++ - name: Lint+ run: npm run lint -- --fix++ - name: Execute tests (Unit and Feature tests) via PHPUnit/Pest+ run: php artisan test+ # ==========================+ # Generate Release Tags+ # ==========================+ get-release-tags:+ name: Generate Release Tags+ runs-on: ubuntu-latest+ needs: [ laravel-tests ]+ if: success()+ permissions:+ contents: write+ strategy:+ fail-fast: true+ outputs:+ tag: ${{ steps.set_release_info.outputs.TAG }}+ docker-tag: ${{ steps.set_release_info.outputs.DOCKER_TAG}}+ prerelease: ${{ steps.set_release_info.outputs.PRERELEASE }}+ steps:+ - name: Checkout Repository+ uses: actions/checkout@v4++ - name: Ensure VERSION file exists+ run: |+ VERSION_FILE="VERSION"+ if [ ! -f "$VERSION_FILE" ]; then+ echo "0.1.0" > "$VERSION_FILE"+ fi+ - name: Fetch full git history and tags+ run: |+ git fetch --unshallow --tags || git fetch --tags+ - name: Set Release Tag and Prerelease Status+ id: set_release_info+ run: |+ VERSION_FILE="VERSION"+ CURRENT_VERSION=$(cat $VERSION_FILE)+ IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"++ PRERELEASE=false+ DOCKER_TAG=""+ TAG=""++ if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then++ #Only increase patch version if merging feature branch to dev+ IS_MERGE=$(git log -1 --pretty=%P | wc -w)+ if [ "$IS_MERGE" -gt 1 ]; then+ PATCH=$((PATCH + 1))+ fi++ NEW_VERSION="$MAJOR.$MINOR.$PATCH"++ #Increase build number all the time++ LAST_BETA=$(git tag --list "${NEW_VERSION}-beta.[0-9]*" | sed -E "s/.*-beta\.//" | sort -V | tail -n1)+ LAST_BETA=${LAST_BETA:-0}+ BUILD_COUNT=$((LAST_BETA + 1))++ TAG="${NEW_VERSION}-beta.${BUILD_COUNT}"+ DOCKER_TAG="beta"+ PRERELEASE=true+ elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then+ INCREMENT="${{ github.event.inputs.bump }}"+ INCREMENT="${INCREMENT:-patch}"++ case $INCREMENT in+ major)+ MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;+ minor)+ MINOR=$((MINOR + 1)); PATCH=0 ;;+ patch|*)+ PATCH=$((PATCH + 1)) ;;+ esac++ #just remove minor tags like 'b' when auto releasing to++ fi+ NEW_VERSION="$MAJOR.$MINOR.$PATCH"+ TAG="$NEW_VERSION"+ DOCKER_TAG="latest"+ fi++ echo "$NEW_VERSION" > $VERSION_FILE++ echo "::notice title=Version Info::Branch: ${{ github.ref }}, Tag: $TAG, Prerelease: $PRERELEASE"++ echo "TAG=$TAG" >> $GITHUB_OUTPUT+ echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_OUTPUT+ echo "PRERELEASE=$PRERELEASE" >> $GITHUB_OUTPUT++ - name: Commit updated VERSION file and manifest+ uses: stefanzweifel/git-auto-commit-action@v5+ with:+ commit_message: 'chore: bump version to ${{ steps.set_release_info.outputs.TAG }}'+ file_pattern: |+ VERSION+ # ==========================+ # Publish Docker Image+ # ==========================+ build-docker:+ name: Build Docker Image+ runs-on: ubuntu-latest+ needs: [ get-release-tags ]+ permissions:+ contents: write+ steps:+ - name: Checkout Repository+ uses: actions/checkout@v4++ - name: Update .env.docker+ run: |+ sed -i "s/DOCKER_RELEASE=.*/DOCKER_RELEASE=${{ needs.get-release-tags.outputs.docker-tag }}/" docker/.env.docker+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKER_HUB_USERNAME }}+ password: ${{ secrets.DOCKER_HUB_TOKEN }}++ - name: Push to Docker Hub+ uses: docker/build-push-action@v5+ with:+ push: true+ tags: |+ aminnausin/mediaserver:${{ needs.get-release-tags.outputs.docker-tag }}+ aminnausin/mediaserver:${{ needs.get-release-tags.outputs.tag }}+ # ==========================+ # Check for Docker Changes+ # ==========================+ check-docker-changes:+ name: Check for Docker Related File Changes+ needs: [ laravel-tests ]+ if: needs.laravel-tests.result == 'success'+ runs-on: ubuntu-latest+ outputs:+ files_changed: ${{ steps.filter.outputs.changes != '[]' }}+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Check for file changes+ id: filter+ uses: dorny/paths-filter@v2+ with:+ filters: |+ changed:+ - 'docker/**'+ - 'docker-compose.yaml'+ - 'Dockerfile'+ - 'startDocker.*'+ - 'data/**'+ - 'README.md'++ # ==========================+ # Release Docker Setup Pkg+ # ==========================+ release:+ name: Create GitHub Release+ runs-on: ubuntu-latest+ needs: [ build-docker, check-docker-changes, get-release-tags ]+ if: needs.check-docker-changes.outputs.files_changed == 'true' || github.event_name == 'workflow_dispatch'+ permissions:+ contents: write+ steps:+ - name: Checkout Repository+ uses: actions/checkout@v4++ - name: Zip Files Linux+ run: |+ zip -r mediaServerDockerLinux.zip ./docker/etc ./docker/.env.docker ./docker-compose.yaml ./startDocker.sh ./README.md ./data/*++ - name: Zip Files Windows+ run: |+ zip -r mediaServerDockerWindows.zip ./docker/etc ./docker/.env.docker ./docker-compose.yaml ./startDocker.bat ./README.md ./data/*+ - name: Create Release+ uses: ncipollo/release-action@v1+ with:+ allowUpdates: false+ token: ${{ secrets.GITHUB_TOKEN }}+ tag: ${{ needs.get-release-tags.outputs.tag }}+ name: Docker Release - ${{ needs.get-release-tags.outputs.tag }}+ draft: false+ prerelease: ${{ needs.get-release-tags.outputs.prerelease }}+ artifacts: mediaServerDockerLinux.zip,mediaServerDockerWindows.zipdiff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.ymlindex 2a3738f7..2a9bfd08 100644--- a/.github/workflows/ci-test.yml+++ b/.github/workflows/ci-test.yml@@ -1,129 +1,129 @@name: Code Teston:- pull_request:- branches: ['dev', 'main']+ pull_request:+ branches: [ 'dev', 'main' ]jobs:- # ==========================- # PHP Linting (Laravel Pint)- # ==========================- check-php-changes:- runs-on: ubuntu-latest- outputs:- php_changed: ${{ steps.filter.outputs.changes != '[]' }}- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Detect PHP file changes- id: filter- uses: dorny/paths-filter@v2- with:- filters: |- php_changed:- - '**/*.php'-- laravel-pint:- needs: [check-php-changes]- runs-on: ubuntu-latest- if: needs.check-php-changes.outputs.php_changed == 'true'- permissions:- contents: write- strategy:- fail-fast: true- matrix:- php: [8.4]-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Setup PHP- uses: shivammathur/setup-php@v2- with:- php-version: ${{ matrix.php }}- extensions: json, dom, curl, libxml, mbstring- coverage: none-- - name: Install Pint- run: composer global require laravel/pint-- - name: Run Pint- run: pint --test || (pint && touch linted)-- - name: Commit linted files- if: success() && hashFiles('linted') != ''- uses: stefanzweifel/git-auto-commit-action@v5- with:- commit_message: 'chore: lint coding style (pint)'-- # ==========================- # Laravel Tests- # ==========================- laravel-tests:- needs: [laravel-pint]- runs-on: ubuntu-latest+ # ==========================+ # PHP Linting (Laravel Pint)+ # ==========================+ check-php-changes:+ runs-on: ubuntu-latest+ outputs:+ php_changed: ${{ steps.filter.outputs.changes != '[]' }}+ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Detect PHP file changes+ id: filter+ uses: dorny/paths-filter@v2+ with:+ filters: |+ php_changed:+ - '**/*.php'++ laravel-pint:+ needs: [ check-php-changes ]+ runs-on: ubuntu-latest+ if: needs.check-php-changes.outputs.php_changed == 'true'+ permissions:+ contents: write+ strategy:+ fail-fast: true+ matrix:+ php: [ 8.4 ]++ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Setup PHP+ uses: shivammathur/setup-php@v2+ with:+ php-version: ${{ matrix.php }}+ extensions: json, dom, curl, libxml, mbstring+ coverage: none++ - name: Install Pint+ run: composer global require laravel/pint++ - name: Run Pint+ run: pint --test || (pint && touch linted)++ - name: Commit linted files+ if: success() && hashFiles('linted') != ''+ uses: stefanzweifel/git-auto-commit-action@v5+ with:+ commit_message: 'chore: lint coding style (pint)'++ # ==========================+ # Laravel Tests+ # ==========================+ laravel-tests:+ needs: [ laravel-pint ]+ runs-on: ubuntu-latest+ env:+ DB_CONNECTION: pgsql+ DB_HOST: localhost+ DB_PORT: 5432+ DB_PASSWORD: postgres+ DB_USERNAME: postgres+ DB_DATABASE: postgres++ services:+ postgres:+ image: postgres:latestenv:- DB_CONNECTION: pgsql- DB_HOST: localhost- DB_PORT: 5432- DB_PASSWORD: postgres- DB_USERNAME: postgres- DB_DATABASE: postgres+ POSTGRES_USER: postgres+ POSTGRES_PASSWORD: postgres+ POSTGRES_DB: postgres- services:- postgres:- image: postgres:latest- env:- POSTGRES_USER: postgres- POSTGRES_PASSWORD: postgres- POSTGRES_DB: postgres+ ports:+ - 5432:5432+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3- ports:- - 5432:5432- options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3+ steps:+ - name: Set up Node.js+ uses: actions/setup-node@v3- steps:- - name: Set up Node.js- uses: actions/setup-node@v3+ - name: Set up PHP+ uses: shivammathur/setup-php@v2+ with:+ php-version: '8.4'+ extensions: pgsql- - name: Set up PHP- uses: shivammathur/setup-php@v2- with:- php-version: '8.4'- extensions: pgsql+ - uses: actions/checkout@v4- - uses: actions/checkout@v4+ - name: Copy .env+ run: php -r "file_exists('.env') || copy('.env.example', '.env');"- - name: Copy .env- run: php -r "file_exists('.env') || copy('.env.example', '.env');"+ - name: Install Dependencies+ run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist- - name: Install Dependencies- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist+ - name: Install node dependencies+ run: npm ci- - name: Install node dependencies- run: npm ci+ - name: Generate key+ run: php artisan key:generate- - name: Generate key- run: php artisan key:generate+ - name: Generate Reverb Keys+ run: php artisan reverb:generate- - name: Generate Reverb Keys- run: php artisan reverb:generate+ - name: Directory Permissions+ run: chmod -R 777 storage bootstrap/cache- - name: Directory Permissions- run: chmod -R 777 storage bootstrap/cache+ - name: Run Migration+ run: php artisan migrate -v+ env:+ DB_PORT: 5432- - name: Run Migration- run: php artisan migrate -v- env:- DB_PORT: 5432+ - name: Build+ run: npm run build- - name: Build- run: npm run build+ - name: Lint+ run: npm run lint -- --fix- - name: Lint- run: npm run lint -- --fix-- - name: Execute tests (Unit and Feature tests) via PHPUnit/Pest- run: php artisan test+ - name: Execute tests (Unit and Feature tests) via PHPUnit/Pest+ run: php artisan testdiff --git a/.prettierignore b/.prettierignoreindex 56afcefb..7fbb4eea 100644--- a/.prettierignore+++ b/.prettierignore@@ -1,3 +1,6 @@storage/**/*.mp4storage/app/public/media/public/+*.yml+*.yaml+.github/workflows/**diff --git a/README.md b/README.mdindex 3d5a7dab..8fdf1bd6 100755--- a/README.md+++ b/README.md@@ -42,7 +42,7 @@ Extra features include watch history, ambient mode, editable video metadata and### Key Features-- Quiet / Minimalist UI+- Minimalist UI- Custom Media Player- Video and Folder Sharing- Watch History Tracking@@ -53,9 +53,9 @@ Extra features include watch history, ambient mode, editable video metadata and<details><summary>Extended Features</summary>-- Quiet / Minimalist UI+- Minimalist UI- Custom Media Player- - New UI+ - Custom UI- Music Support (with cover art)- Keybinds- k (play/pause)@@ -210,7 +210,7 @@ You can download the zip archive for your platform from the latest or beta docke- Place your media in `./data/media/CATEGORY/FOLDER/VIDEO.MP4`- Media must be grouped by a folder (category) and subfolder (folder) in order to show up on the website- There are certain names that you cannot use for folders or videos- - `List coming soon...`+ - `More to come...`#### Standard