Skip to content

High performance self-hosted photo and video management solution.

ci: job naming improvements and success job for matrix (#12316)

Zack Pollard0d6bef2c05a1
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index 1ec17b381d..5292075cce 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -22,7 +22,7 @@ permissions:
jobs:
publish:
- name: Publish
+ name: CLI Publish
runs-on: ubuntu-latest
defaults:
run:
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 7784b32f36..6be26c9bbe 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -234,3 +234,16 @@ jobs:
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.metadata.outputs.tags }}
BUILD_SOURCE_REF=${{ github.ref_name }}
BUILD_SOURCE_COMMIT=${{ github.sha }}
+
+ success-check:
+ name: Docker Build & Push Success
+ needs: [build_and_push_ml, build_and_push_server]
+ runs-on: ubuntu-latest
+ if: always()
+ steps:
+ - name: Any jobs failed?
+ if: ${{ contains(needs.*.result, 'failure') }}
+ run: exit 1
+ - name: All jobs passed or skipped
+ if: ${{ !(contains(needs.*.result, 'failure')) }}
+ run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}"
diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml
index 682e3c45f0..387d8e0424 100644
--- a/.github/workflows/docs-build.yml
+++ b/.github/workflows/docs-build.yml
@@ -30,6 +30,7 @@ jobs:
run: echo "should_force=${{ github.event_name == 'release' }}" >> "$GITHUB_OUTPUT"
build:
+ name: Docs Build
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run == 'true' }}
runs-on: ubuntu-latest
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index a863cf8ed2..ab197fa459 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -7,6 +7,7 @@ on:
jobs:
checks:
+ name: Docs Deploy Checks
runs-on: ubuntu-latest
outputs:
parameters: ${{ steps.parameters.outputs.result }}
@@ -91,6 +92,7 @@ jobs:
return parameters;
deploy:
+ name: Docs Deploy
runs-on: ubuntu-latest
needs: checks
if: ${{ fromJson(needs.checks.outputs.artifact).found && fromJson(needs.checks.outputs.parameters).shouldDeploy }}
diff --git a/.github/workflows/docs-destroy.yml b/.github/workflows/docs-destroy.yml
index 861a6319fe..8070056924 100644
--- a/.github/workflows/docs-destroy.yml
+++ b/.github/workflows/docs-destroy.yml
@@ -5,6 +5,7 @@ on:
jobs:
deploy:
+ name: Docs Destroy
runs-on: ubuntu-latest
steps:
- name: Checkout code
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ac6236d2eb..24e3e08623 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -48,7 +48,7 @@ jobs:
run: echo "should_force=${{ github.event_name == 'workflow_dispatch' }}" >> "$GITHUB_OUTPUT"
server-unit-tests:
- name: Server
+ name: Test & Lint Server
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_server == 'true' }}
runs-on: ubuntu-latest
@@ -85,7 +85,7 @@ jobs:
if: ${{ !cancelled() }}
cli-unit-tests:
- name: CLI
+ name: Unit Test CLI
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_cli == 'true' }}
runs-on: ubuntu-latest
@@ -126,7 +126,7 @@ jobs:
if: ${{ !cancelled() }}
cli-unit-tests-win:
- name: CLI (Windows)
+ name: Unit Test CLI (Windows)
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_cli == 'true' }}
runs-on: windows-latest
@@ -160,7 +160,7 @@ jobs:
if: ${{ !cancelled() }}
web-unit-tests:
- name: Web
+ name: Test & Lint Web
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_web == 'true' }}
runs-on: ubuntu-latest
@@ -327,7 +327,7 @@ jobs:
if: ${{ !cancelled() }}
mobile-unit-tests:
- name: Mobile
+ name: Unit Test Mobile
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_mobile == 'true' }}
runs-on: ubuntu-latest
@@ -343,7 +343,7 @@ jobs:
run: flutter test -j 1
ml-unit-tests:
- name: Machine Learning
+ name: Unit Test ML
needs: pre-job
if: ${{ needs.pre-job.outputs.should_run_ml == 'true' }}
runs-on: ubuntu-latest