File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -341,6 +341,17 @@ jobs:
341341 - ubuntu-latest
342342 - macos-latest
343343 - windows-2022
344+ # Use the GitHub ref to determine if we should run on all OSes.
345+ # Evaluates to true on main, false otherwise.
346+ isMain :
347+ - ${{ github.ref == 'refs/heads/main' }}
348+ # macOS and Windows are tested on main only to improve CI speed, and we don't see much use on these platforms.
349+ # See nightly-gauntlet.yaml for comprehensive macOS/Windows coverage.
350+ exclude :
351+ - isMain : false
352+ os : macos-latest
353+ - isMain : false
354+ os : windows-2022
344355 steps :
345356 - name : Harden Runner
346357 uses : step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
@@ -461,7 +472,7 @@ jobs:
461472 test-count : ${{ github.ref == 'refs/heads/main' && '1' || '' }}
462473
463474 - name : Test with PostgreSQL Database (macOS)
464- if : runner.os == 'macOS' && github.ref == 'refs/heads/main'
475+ if : runner.os == 'macOS'
465476 uses : ./.github/actions/test-go-pg
466477 with :
467478 postgres-version : " 13"
@@ -477,7 +488,7 @@ jobs:
477488 embedded-pg-cache : ${{ steps.embedded-pg-cache.outputs.embedded-pg-cache }}
478489
479490 - name : Test with PostgreSQL Database (Windows)
480- if : runner.os == 'Windows' && github.ref == 'refs/heads/main'
491+ if : runner.os == 'Windows'
481492 uses : ./.github/actions/test-go-pg
482493 with :
483494 postgres-version : " 13"
You can’t perform that action at this time.
0 commit comments