Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/cache-warm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:

jobs:
warm-cache:
# Skipped while the mini is away (KEYPATH_CI_RUNNER=hosted); a self-hosted
# job with no runner online just queues. See the header of ci.yml.
if: vars.KEYPATH_CI_RUNNER != 'hosted'
runs-on: [self-hosted, macOS, keypath, swiftpm-safe]
timeout-minutes: 5
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ concurrency:
# mini. Job names, and so the required checks, are the same either way.
# gh variable set KEYPATH_CI_RUNNER --repo malpern/KeyPath --body hosted
# gh variable delete KEYPATH_CI_RUNNER --repo malpern/KeyPath
# Only ci.yml has the fallback; coverage, cache-warm and runner-health are
# scheduled jobs that stay on the mini and don't gate PRs.
# Only ci.yml has the fallback. coverage, cache-warm and runner-health are
# mini-only jobs that do not gate PRs; they skip while this variable is set.

# GitHub counts a skipped check as passing, so the required checks must never be
# skipped. `build-and-test` and `code-quality` at the bottom of this file always run
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:

jobs:
narrow-coverage:
# Skipped while the mini is away (KEYPATH_CI_RUNNER=hosted); a self-hosted
# job with no runner online just queues. See the header of ci.yml.
if: vars.KEYPATH_CI_RUNNER != 'hosted'
runs-on: [self-hosted, macOS, keypath, swiftpm-safe]
timeout-minutes: 10
env:
Expand Down Expand Up @@ -108,7 +111,8 @@ jobs:
# serializes them; `if: always()` still surfaces full numbers when the narrow
# floor regresses or a filtered test fails.
needs: [narrow-coverage]
if: always()
# Also skipped while the mini is away (KEYPATH_CI_RUNNER=hosted); see ci.yml.
if: always() && vars.KEYPATH_CI_RUNNER != 'hosted'
timeout-minutes: 40
steps:
- name: Clean stale git credentials
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/runner-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
ping:
# Skipped while the mini is away (KEYPATH_CI_RUNNER=hosted); a self-hosted
# job with no runner online just queues. See the header of ci.yml.
if: vars.KEYPATH_CI_RUNNER != 'hosted'
runs-on: [self-hosted, macOS, keypath]
timeout-minutes: 2
steps:
Expand Down
Loading