Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: consolidate pr workflows into single file (#1548)
Kyle Mendell2658f21e364e
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.ymldeleted file mode 100644index 272ad2084..000000000--- a/.github/workflows/backend-tests.yml+++ /dev/null@@ -1,105 +0,0 @@-name: Go Unit Tests--on:- push:- branches: [main]- paths:- - "backend/**"- - "cli/**"- - "types/**"- - "go.work"- pull_request:- branches: [main, "release/**"]- paths:- - "backend/**"- - "cli/**"- - "types/**"- - "go.work"--permissions:- contents: read--jobs:- test-backend:- name: Backend Tests- runs-on: depot-ubuntu-24.04-16- timeout-minutes: 30- defaults:- run:- working-directory: backend-- steps:- - name: Checkout- uses: actions/checkout@v6-- - name: Set up Depot CLI- uses: depot/setup-action@v1-- - name: Setup Go- uses: actions/setup-go@v6- with:- go-version-file: backend/go.mod- cache: true- cache-dependency-path: backend/go.sum-- - name: Install GCC- run: |- sudo apt-get update- sudo apt-get install -y gcc-- - name: Download modules- run: go mod download-- - name: Run unit tests- env:- CGO_ENABLED: "1"- run: go test -tags=exclude_frontend ./... -race -coverprofile=coverage.txt -covermode=atomic -v-- - name: Upload coverage artifact- if: always()- uses: actions/upload-artifact@v6- with:- name: backend-coverage- path: backend/coverage.txt-- - name: Upload coverage reports to Codecov- uses: codecov/codecov-action@v5- with:- token: ${{ secrets.CODECOV_TOKEN }}-- test-cli:- name: CLI Tests- runs-on: depot-ubuntu-24.04-8- timeout-minutes: 10- defaults:- run:- working-directory: cli-- steps:- - name: Checkout- uses: actions/checkout@v6-- - name: Setup Go- uses: actions/setup-go@v6- with:- go-version-file: cli/go.mod- cache: true- cache-dependency-path: cli/go.sum-- - name: Download modules- run: go mod download-- - name: Run unit tests- run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic -v-- - name: Upload coverage artifact- if: always()- uses: actions/upload-artifact@v6- with:- name: cli-coverage- path: cli/coverage.txt-- - name: Upload coverage reports to Codecov- uses: codecov/codecov-action@v5- with:- token: ${{ secrets.CODECOV_TOKEN }}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 000000000..f1e148ee6--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,294 @@+name: CI++on:+ push:+ branches: [main]+ pull_request:+ branches: [main, "release/**"]++permissions:+ contents: read+ actions: read+ checks: write+ pull-requests: write+ id-token: write++concurrency:+ group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"+ cancel-in-progress: true++jobs:+ go-tests:+ name: Go Tests (${{ matrix.module.name }})+ runs-on: depot-ubuntu-24.04-16+ timeout-minutes: 30+ strategy:+ fail-fast: false+ matrix:+ module:+ - name: backend+ path: backend+ timeout: 30+ gcc: true+ cgo_enabled: "1"+ coverage_name: backend-coverage+ - name: cli+ path: cli+ timeout: 10+ gcc: false+ cgo_enabled: "1"+ coverage_name: cli-coverage+ defaults:+ run:+ working-directory: ${{ matrix.module.path }}+ steps:+ - name: Checkout+ uses: actions/checkout@v6++ - name: Set up Depot CLI+ if: matrix.module.gcc+ uses: depot/setup-action@v1++ - name: Setup Go+ uses: actions/setup-go@v6+ with:+ go-version-file: ${{ matrix.module.path }}/go.mod+ cache: true+ cache-dependency-path: ${{ matrix.module.path }}/go.sum++ - name: Install GCC+ if: matrix.module.gcc+ run: |+ sudo apt-get update+ sudo apt-get install -y gcc++ - name: Download modules+ run: go mod download++ - name: Run unit tests+ env:+ CGO_ENABLED: ${{ matrix.module.cgo_enabled }}+ run: |+ if [ "${{ matrix.module.name }}" = "backend" ]; then+ go test -tags=exclude_frontend ./... -race -coverprofile=coverage.txt -covermode=atomic -v+ else+ go test ./... -race -coverprofile=coverage.txt -covermode=atomic -v+ fi++ - name: Upload coverage artifact+ if: always()+ uses: actions/upload-artifact@v6+ with:+ name: ${{ matrix.module.coverage_name }}+ path: ${{ matrix.module.path }}/coverage.txt++ - name: Upload coverage reports to Codecov+ uses: codecov/codecov-action@v5+ with:+ token: ${{ secrets.CODECOV_TOKEN }}++ go-linter:+ name: Go Linter (${{ matrix.module.name }})+ runs-on: depot-ubuntu-24.04-16+ strategy:+ fail-fast: false+ matrix:+ module:+ - name: backend+ path: backend+ args: --build-tags=exclude_frontend --config=.golangci.yml+ - name: cli+ path: cli+ args: --config=../backend/.golangci.yml+ - name: types+ path: types+ args: --config=../backend/.golangci.yml+ steps:+ - name: Checkout code+ uses: actions/checkout@v6++ - name: Set up Go+ uses: actions/setup-go@v6+ with:+ go-version-file: ${{ matrix.module.path }}/go.mod+ cache-dependency-path: ${{ matrix.module.path }}/go.sum++ - name: Run Golangci-lint+ uses: golangci/golangci-lint-action@v9+ with:+ version: v2.7.2+ args: ${{ matrix.module.args }}+ working-directory: ${{ matrix.module.path }}+ only-new-issues: true++ deadcode:+ name: Go Deadcode Analysis+ if: github.event.pull_request.head.repo.owner.login == 'getarcaneapp'+ runs-on: depot-ubuntu-latest+ steps:+ - name: Checkout code+ uses: actions/checkout@v6++ - name: Setup Go+ uses: actions/setup-go@v6+ with:+ go-version-file: backend/go.mod+ cache-dependency-path: backend/go.sum++ - name: Install deadcode+ run: go install golang.org/x/tools/cmd/deadcode@latest++ - name: Add deadcode problem matcher+ run: echo "::add-matcher::.github/matchers/deadcode-matcher.json"++ - name: Run deadcode analysis+ id: deadcode+ working-directory: backend+ continue-on-error: true+ run: |+ OUTPUT=$(deadcode ./... 2>&1 || true)+ echo "$OUTPUT"+ COUNT=$(echo "$OUTPUT" | grep -c "unreachable func" || true)+ if [ -z "$COUNT" ]; then COUNT=0; fi+ echo "count=$COUNT" >> $GITHUB_OUTPUT+ echo "output<<EOF" >> $GITHUB_OUTPUT+ echo "$OUTPUT" >> $GITHUB_OUTPUT+ echo "EOF" >> $GITHUB_OUTPUT++ - name: Find Comment+ uses: peter-evans/find-comment@v4+ id: fc+ with:+ issue-number: ${{ github.event.pull_request.number }}+ comment-author: "github-actions[bot]"+ body-includes: "## π Deadcode Analysis"++ - name: Comment deadcode results+ uses: peter-evans/create-or-update-comment@v5+ with:+ comment-id: ${{ steps.fc.outputs.comment-id }}+ issue-number: ${{ github.event.pull_request.number }}+ body: |+ ## π Deadcode Analysis++ Found **${{ steps.deadcode.outputs.count }}** unreachable functions in the backend.++ <details>+ <summary>View details</summary>++ ```+ ${{ steps.deadcode.outputs.output }}+ ```++ Only remove deadcode that you know is 100% no longer used.++ </details>++ > Analysis from commit ${{ github.sha }}+ edit-mode: replace++ svelte-check:+ name: Svelte Type Check+ runs-on: depot-ubuntu-24.04-8+ steps:+ - name: Checkout code+ uses: actions/checkout@v6++ - name: Setup pnpm+ uses: pnpm/action-setup@v4++ - name: Setup Node.js+ uses: actions/setup-node@v6+ with:+ node-version: 25+ cache: pnpm++ - name: Install dependencies+ run: pnpm --filter arcane-frontend install --frozen-lockfile++ - name: Add svelte-check problem matcher+ run: echo "::add-matcher::.github/matchers/svelte-check-matcher.json"++ - name: Build frontend+ run: pnpm --filter arcane-frontend build++ - name: Run svelte-check+ run: pnpm --filter arcane-frontend check:ci++ e2e-tests:+ name: E2E Tests (${{ matrix.database.name }})+ if: ${{ github.head_ref != 'l10n_crowdin' }}+ runs-on: depot-ubuntu-24.04-16+ permissions:+ contents: read+ actions: write+ id-token: write+ strategy:+ fail-fast: false+ matrix:+ database:+ - name: sqlite+ compose_file: setup/compose.yaml+ port: 3000+ - name: postgres+ compose_file: setup/compose-postgres.yaml+ port: 3001+ - name: proxy+ compose_file: setup/compose-proxy.yaml+ port: 3002+ steps:+ - uses: actions/checkout@v6++ - name: Setup pnpm+ uses: pnpm/action-setup@v4+ with:+ run_install: false++ - name: Setup Node.js+ uses: actions/setup-node@v6+ with:+ node-version: 25+ cache: pnpm++ - name: Set up Depot CLI+ uses: depot/setup-action@v1++ - name: Setup depot buildx driver+ run: depot configure-docker++ - name: Cache Playwright Browsers+ uses: actions/cache@v5+ id: playwright-cache+ with:+ path: ~/.cache/ms-playwright+ key: ${{ runner.os }}-playwright-${{ hashFiles('tests/pnpm-lock.yaml', 'tests/package.json') }}+ restore-keys: |+ ${{ runner.os }}-playwright-++ - name: Pull and save test images+ run: |+ docker pull ghcr.io/linuxserver/nginx:latest+ docker pull ghcr.io/linuxserver/radarr:nightly+ docker save ghcr.io/linuxserver/nginx:latest ghcr.io/linuxserver/radarr:nightly > /tmp/test-images.tar++ - name: Install test dependencies+ run: pnpm --filter arcane-tests install++ - name: Install Playwright Browsers+ working-directory: ./tests+ run: pnpm exec playwright install --with-deps chromium++ - name: Run Playwright E2E tests+ run: pnpm --filter arcane-tests test+ env:+ COMPOSE_FILE: ${{ matrix.database.compose_file }}+ BASE_URL: http://localhost:${{ matrix.database.port }}++ - name: Upload Playwright HTML report+ if: always()+ uses: actions/upload-artifact@v6+ with:+ name: playwright-report-${{ matrix.database.name }}+ path: tests/.report+ include-hidden-files: true+ retention-days: 15diff --git a/.github/workflows/deadcode.yml b/.github/workflows/deadcode.ymldeleted file mode 100644index bbc85ec40..000000000--- a/.github/workflows/deadcode.yml+++ /dev/null@@ -1,98 +0,0 @@-name: Go Deadcode Check--on:- push:- branches: [main]- paths:- - "backend/**/*.go"- - "types/**/*.go"- - "cli/**/*.go"- - ".github/workflows/deadcode.yml"- - ".github/matchers/deadcode-matcher.json"- - "go.work"- - "backend/go.mod"- - "backend/go.sum"- pull_request:- branches: [main, "release/**"]- paths:- - "backend/**/*.go"- - "types/**/*.go"- - "cli/**/*.go"- - ".github/workflows/deadcode.yml"- - ".github/matchers/deadcode-matcher.json"- - "go.work"- - "backend/go.mod"- - "backend/go.sum"- workflow_dispatch:--jobs:- deadcode:- if: github.event.pull_request.head.repo.owner.login == 'getarcaneapp'- name: Run GoLang Deadcode Analysis- runs-on: depot-ubuntu-latest- permissions:- contents: read- checks: write- pull-requests: write-- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Setup Go- uses: actions/setup-go@v6- with:- go-version-file: backend/go.mod- cache-dependency-path: backend/go.sum-- - name: Install deadcode- run: go install golang.org/x/tools/cmd/deadcode@latest-- - name: Add deadcode problem matcher- run: echo "::add-matcher::.github/matchers/deadcode-matcher.json"-- - name: Run deadcode analysis- id: deadcode- working-directory: backend- run: |- OUTPUT=$(deadcode ./... 2>&1 || true)- echo "$OUTPUT"- COUNT=$(echo "$OUTPUT" | grep -c "unreachable func" || echo "0")- echo "count=$COUNT" >> $GITHUB_OUTPUT- echo "output<<EOF" >> $GITHUB_OUTPUT- echo "$OUTPUT" >> $GITHUB_OUTPUT- echo "EOF" >> $GITHUB_OUTPUT-- - name: Find Comment- if: github.event_name == 'pull_request'- uses: peter-evans/find-comment@v4- id: fc- with:- issue-number: ${{ github.event.pull_request.number }}- comment-author: "github-actions[bot]"- body-includes: "## π Deadcode Analysis"-- - name: Comment deadcode results- if: github.event_name == 'pull_request'- uses: peter-evans/create-or-update-comment@v5- with:- comment-id: ${{ steps.fc.outputs.comment-id }}- issue-number: ${{ github.event.pull_request.number }}- body: |- ## π Deadcode Analysis-- Found **${{ steps.deadcode.outputs.count }}** unreachable functions in the backend.-- <details>- <summary>View details</summary>-- ```- ${{ steps.deadcode.outputs.output }}- ```-- Only remove deadcode that you know is 100% no longer used.-- </details>-- > Analysis from commit ${{ github.sha }}- edit-mode: replacediff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.ymldeleted file mode 100644index 84bd6e91d..000000000--- a/.github/workflows/e2e-tests.yml+++ /dev/null@@ -1,103 +0,0 @@-name: Playwright E2E Tests--on:- push:- branches: [main]- paths-ignore:- - "**.md"- pull_request:- branches: [main, "release/**"]- paths-ignore:- - "**.md"--permissions:- contents: read- actions: read- checks: write- pull-requests: write- id-token: write--concurrency:- group: "${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.pull_request.number) || github.ref }}"- cancel-in-progress: true--jobs:- test:- if: ${{ github.event_name != 'pull_request' || github.head_ref != 'l10n_crowdin' }}- permissions:- contents: read- actions: write- id-token: write- runs-on: depot-ubuntu-24.04-16- strategy:- fail-fast: false- matrix:- database:- - name: sqlite- compose_file: setup/compose.yaml- port: 3000- - name: postgres- compose_file: setup/compose-postgres.yaml- port: 3001- - name: proxy- compose_file: setup/compose-proxy.yaml- port: 3002- name: E2E Tests (${{ matrix.database.name }})- steps:- - uses: actions/checkout@v6-- - name: Setup pnpm- uses: pnpm/action-setup@v4- with:- run_install: false-- - name: Setup Node.js- uses: actions/setup-node@v6- with:- node-version: 25- cache: pnpm-- - name: Set up Depot CLI- uses: depot/setup-action@v1-- - name: Setup depot buildx driver- id: setup-buildx-driver- run: |- depot configure-docker-- - name: Cache Playwright Browsers- uses: actions/cache@v5- id: playwright-cache- with:- path: ~/.cache/ms-playwright- key: ${{ runner.os }}-playwright-${{ hashFiles('tests/pnpm-lock.yaml', 'tests/package.json') }}- restore-keys: |- ${{ runner.os }}-playwright--- - name: Pull and save test images- run: |- docker pull ghcr.io/linuxserver/nginx:latest- docker pull ghcr.io/linuxserver/radarr:nightly- docker save ghcr.io/linuxserver/nginx:latest ghcr.io/linuxserver/radarr:nightly > /tmp/test-images.tar-- - name: Install test dependencies- run: pnpm --filter arcane-tests install-- - name: Install Playwright Browsers- working-directory: ./tests- run: pnpm exec playwright install --with-deps chromium-- - name: Run Playwright E2E tests- run: pnpm --filter arcane-tests test- env:- COMPOSE_FILE: ${{ matrix.database.compose_file }}- BASE_URL: http://localhost:${{ matrix.database.port }}-- - name: Upload Playwright HTML report- if: always()- uses: actions/upload-artifact@v6- with:- name: playwright-report-${{ matrix.database.name }}- path: tests/.report- include-hidden-files: true- retention-days: 15diff --git a/.github/workflows/go-linter.yml b/.github/workflows/go-linter.ymldeleted file mode 100644index ab90f8ae0..000000000--- a/.github/workflows/go-linter.yml+++ /dev/null@@ -1,55 +0,0 @@-name: Run Go Linter--on:- push:- branches: [main]- paths:- - "backend/**"- - "cli/**"- - "types/**"- - "go.work"- pull_request:- branches: [main, "release/**"]- paths:- - "backend/**"- - "cli/**"- - "types/**"- - "go.work"--permissions:- contents: read- pull-requests: read- checks: write--jobs:- golangci-lint:- name: Run Golangci-lint- runs-on: depot-ubuntu-24.04-16- strategy:- fail-fast: false- matrix:- module: [backend, cli, types]- include:- - module: backend- args: --build-tags=exclude_frontend --config=.golangci.yml- - module: cli- args: --config=../backend/.golangci.yml- - module: types- args: --config=../backend/.golangci.yml- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Set up Go- uses: actions/setup-go@v6- with:- go-version-file: ${{ matrix.module }}/go.mod- cache-dependency-path: ${{ matrix.module }}/go.sum-- - name: Run Golangci-lint- uses: golangci/golangci-lint-action@v9- with:- version: v2.7.2- args: ${{ matrix.args }}- working-directory: ${{ matrix.module }}- only-new-issues: ${{ github.event_name == 'pull_request' }}diff --git a/.github/workflows/svelte-check.yml b/.github/workflows/svelte-check.ymldeleted file mode 100644index b548822db..000000000--- a/.github/workflows/svelte-check.yml+++ /dev/null@@ -1,58 +0,0 @@-name: Svelte Check--on:- push:- branches: [main]- paths:- - "frontend/src/**"- - ".github/workflows/svelte-check.yml"- - ".github/svelte-check-matcher.json"- - "package.json"- - "pnpm-lock.yaml"- - "tsconfig.json"- - "svelte.config.js"- pull_request:- branches: [main, "release/**"]- paths:- - "frontend/src/**"- - ".github/workflows/svelte-check.yml"- - ".github/svelte-check-matcher.json"- - "package.json"- - "pnpm-lock.yaml"- - "tsconfig.json"- - "svelte.config.js"- workflow_dispatch:--jobs:- type-check:- name: Run Svelte Check- runs-on: depot-ubuntu-24.04-8- permissions:- contents: read- checks: write- pull-requests: write-- steps:- - name: Checkout code- uses: actions/checkout@v6-- - name: Setup pnpm- uses: pnpm/action-setup@v4-- - name: Setup Node.js- uses: actions/setup-node@v6- with:- node-version: 25- cache: pnpm-- - name: Install dependencies- run: pnpm --filter arcane-frontend install --frozen-lockfile-- - name: Add svelte-check problem matcher- run: echo "::add-matcher::.github/matchers/svelte-check-matcher.json"-- - name: Build frontend- run: pnpm --filter arcane-frontend build-- - name: Run svelte-check- run: pnpm --filter arcane-frontend check:ci