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
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user