Skip to content
Prev Previous commit
Next Next commit
Only run tests on Linux
  • Loading branch information
kyleconroy committed Aug 25, 2025
commit 153be0daa7bd5916534cfecf82d46923a0bdcfe2
15 changes: 6 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
matrix:
# Disabling windows builds while we fix installing PostgreSQL 16
os: [ubuntu-24.04, macos-14, windows-2022]
cgo: ['1', '0']
# os: [ubuntu-24.04, macos-14, windows-2022]
os: [ubuntu-24.04]
# Workaround no native support for conditional matrix items
# https://github.com/orgs/community/discussions/26253#discussioncomment-6745038
# isMain:
Expand All @@ -19,10 +19,7 @@ jobs:
# - isMain: false
# include:
# - os: ubuntu-24.04
# cgo: '1'
# - os: ubuntu-24.04
# cgo: '0'
name: test ${{ matrix.os }} cgo=${{ matrix.cgo }}
name: test ${{ matrix.os }}
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -43,13 +40,13 @@ jobs:
- name: install ./...
run: go install ./...
env:
CGO_ENABLED: ${{ matrix.cgo }}
CGO_ENABLED: "0"

- name: build internal/endtoend
run: go build ./...
working-directory: internal/endtoend/testdata
env:
CGO_ENABLED: ${{ matrix.cgo }}
CGO_ENABLED: "0"

- name: test ./...
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
Expand All @@ -58,7 +55,7 @@ jobs:
CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
CGO_ENABLED: ${{ matrix.cgo }}
CGO_ENABLED: "0"

vuln_check:
runs-on: ubuntu-24.04
Expand Down
Loading