Skip to content

feat: add Media Info, Download, and Copy Stream URL to context menu #538

feat: add Media Info, Download, and Copy Stream URL to context menu

feat: add Media Info, Download, and Copy Stream URL to context menu #538

Workflow file for this run

name: Quality checks πŸ‘ŒπŸ§ͺ
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
pull_request:
paths-ignore:
- "**/*.md"
schedule:
- cron: "30 7 * * 6"
workflow_dispatch:
jobs:
dependency-review:
name: Vulnerable dependencies πŸ”Ž
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Scan
uses: actions/[email protected]
lint:
name: Lint πŸ”¬
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
- name: Setup node environment βš™οΈ
uses: actions/[email protected]
with:
node-version: 18
check-latest: true
- name: Install dependencies πŸ“¦
run: npm ci --no-audit
- name: Run linter ✏️
run: npm run lint
typecheck:
name: Typecheck 🈯
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
- name: Setup node environment βš™οΈ
uses: actions/[email protected]
with:
node-version: 18
check-latest: true
- name: Install dependencies πŸ“¦
run: npm ci --no-audit
- name: Run typecheck πŸ“–
run: npm run typecheck
build:
name: Build frontend πŸ› οΈ
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- "linux/amd64"
- "linux/arm64"
- "linux/arm"
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
- name: Configure QEMU βš™οΈ
uses: docker/[email protected]
- name: Configure Docker Buildx βš™οΈ
uses: docker/[email protected]
- name: Build Docker images πŸ› οΈ
uses: docker/[email protected]
with:
context: .
platforms: ${{ matrix.platform }}
cache-from: type=gha
cache-to: type=gha,mode=max
load: true
tags: |
jellyfin/jellyfin-vue:pr-build
- name: Extract built client and Docker image for artifact publishing πŸ“¦
if: ${{ matrix.platform == 'linux/amd64' }}
run: |
docker save jellyfin/jellyfin-vue:pr-build > docker_image.tar
docker cp $(docker create --name jf jellyfin/jellyfin-vue:pr-build):/usr/share/nginx/html/ ./dist
docker rm jf
- name: Upload artifact (Docker image) β¬†οΈπŸ“¦
uses: actions/[email protected]
if: ${{ matrix.platform == 'linux/amd64' }}
with:
name: docker_image
path: |
docker_image.tar
- name: Upload artifact (Client) β¬†οΈπŸ’»
uses: actions/[email protected]
if: ${{ matrix.platform == 'linux/amd64' }}
with:
name: frontend
path: |
dist
build_tauri:
name: Build Tauri πŸ› οΈ
strategy:
fail-fast: false
matrix:
platform:
- "macos-latest"
- "ubuntu-latest"
- "windows-latest"
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
- name: Setup node environment βš™οΈ
uses: actions/[email protected]
with:
node-version: 18
check-latest: true
- name: Install dependencies πŸ“¦
run: npm ci --no-audit -w tauri
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Generate Tauri icons πŸ–ŒοΈ
run: "npm run tauri:icon -w tauri"
- name: Build Tauri πŸ› οΈ
run: "npm run tauri:build -w tauri"
- name: Upload artifact (Linux) β¬†οΈπŸ§
uses: actions/[email protected]
if: matrix.platform == 'ubuntu-latest'
with:
name: jellyfin-vue_linux-amd64
path: |
tauri/target/release/bundle/deb/*.deb
tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) β¬†οΈπŸŽ
uses: actions/[email protected]
if: matrix.platform == 'macos-latest'
with:
name: jellyfin-vue_macOS
path: |
tauri/target/release/bundle/macos
tauri/target/release/bundle/dmg/*.dmg
- name: Upload artifact (Windows) ⬆️πŸͺŸ
uses: actions/[email protected]
if: matrix.platform == 'windows-latest'
with:
name: jellyfin-vue_windows_amd64
path: tauri/target/release/jellyfin-vue.exe
pr_context:
name: Save PR context as artifact
if: ${{ always() && !cancelled() && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
needs:
- dependency-review
- lint
- typecheck
- build
- build_tauri
steps:
- name: Save PR context
env:
PR_NUMBER: ${{ github.event.number }}
PR_SHA: ${{ github.sha }}
run: |
echo $PR_NUMBER > PR_number
echo $PR_SHA > PR_sha
- name: Upload PR number as artifact
uses: actions/[email protected]
with:
name: PR_context
path: |
PR_number
PR_sha
conventional_commits:
name: Conventional commits check πŸ’¬
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout ⬇️
uses: actions/[email protected]
- name: Check if all commits comply with the specification
uses: webiny/[email protected]