Keep macOS and Windows CI jobs off the Gitea runner
CI / Test (macos-latest, Node 24) (push) Has been skipped
CI / Test (windows-latest, Node 24) (push) Has been skipped
CI / Test (ubuntu-latest, Node 22) (push) Has been skipped
CI / Test (ubuntu-latest, Node 24) (push) Has been skipped
CI / Test (ubuntu-latest, Node 26) (push) Has been skipped

Gitea matches runs-on against its runners before evaluating the job's if, so the macOS and Windows matrix jobs queued forever there. Off GitHub, every job now asks for ubuntu-latest and is skipped.
This commit is contained in:
David Ibia
2026-10-20 15:14:32 +01:00
parent 2bd7359056
commit 5675f9c15a
+2 -1
View File
@@ -17,8 +17,9 @@ jobs:
test:
name: Test (${{ matrix.os }}, Node ${{ matrix.node }})
# GitHub only: the Gitea origin also runs .github/workflows but has no macOS/Windows runners.
# Gitea matches runs-on before evaluating `if`, so off GitHub every job asks for ubuntu-latest and is skipped.
if: github.server_url == 'https://github.com'
runs-on: ${{ matrix.os }}
runs-on: ${{ github.server_url == 'https://github.com' && matrix.os || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix: