From 2fb0d99f00a832430e98d55e1b3198a51ca6c9da Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 10 Jan 2025 12:56:17 -0800 Subject: [PATCH] ci: add required checks jobs This is a hack to make it easier for our GitHub branching rules to require a single check to pass before merging. This lets us describe the required checks in code rather than via the GH UI. --- .github/workflows/nix.yml | 9 +++++++++ .github/workflows/test.yml | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index d5ee328e5..d557fcebd 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -1,6 +1,15 @@ on: [push, pull_request] name: Nix jobs: + required: + name: Required Checks + runs-on: namespace-profile-ghostty-sm + needs: + - check-zig-cache-hash + steps: + - name: Noop + run: echo "Required Checks Met" + check-zig-cache-hash: if: github.repository == 'ghostty-org/ghostty' runs-on: namespace-profile-ghostty-sm diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1e021af64..150901cb6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,29 @@ on: name: Test jobs: + required: + name: Required Checks + runs-on: namespace-profile-ghostty-sm + needs: + - build + - build-bench + - build-linux-libghostty + - build-nix + - build-macos + - build-macos-matrix + - build-windows + - test + - test-gtk + - test-sentry-linux + - test-macos + - prettier + - alejandra + - typos + - test-pkg-linux + steps: + - name: Noop + run: echo "Required Checks Met" + build: strategy: fail-fast: false