mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
ci: add required checks jobs (#4916)
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.
This commit is contained in:
9
.github/workflows/nix.yml
vendored
9
.github/workflows/nix.yml
vendored
@ -1,6 +1,15 @@
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
name: Nix
|
name: Nix
|
||||||
jobs:
|
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:
|
check-zig-cache-hash:
|
||||||
if: github.repository == 'ghostty-org/ghostty'
|
if: github.repository == 'ghostty-org/ghostty'
|
||||||
runs-on: namespace-profile-ghostty-sm
|
runs-on: namespace-profile-ghostty-sm
|
||||||
|
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@ -6,6 +6,29 @@ on:
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
Reference in New Issue
Block a user