Skip to content

Commit f69c738

Browse files
committed
Test if things work on Windows and macOS
1 parent 9bdaf61 commit f69c738

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,19 @@ jobs:
99
strategy:
1010
matrix:
1111
# Disabling windows builds while we fix installing PostgreSQL 16
12-
# os: [ubuntu-22.04, macos-14, windows-2022]
13-
os: [ubuntu-22.04, macos-15]
12+
os: [ubuntu-22.04, macos-14, windows-2022]
1413
cgo: ['1', '0']
1514
# Workaround no native support for conditional matrix items
1615
# https://github.com/orgs/community/discussions/26253#discussioncomment-6745038
17-
isMain:
18-
- ${{ github.ref == 'refs/heads/main' }}
19-
exclude:
20-
- isMain: false
21-
include:
22-
- os: ubuntu-22.04
23-
cgo: '1'
24-
- os: ubuntu-22.04
25-
cgo: '0'
16+
# isMain:
17+
# - ${{ github.ref == 'refs/heads/main' }}
18+
# exclude:
19+
# - isMain: false
20+
# include:
21+
# - os: ubuntu-22.04
22+
# cgo: '1'
23+
# - os: ubuntu-22.04
24+
# cgo: '0'
2625
name: test ${{ matrix.os }} cgo=${{ matrix.cgo }}
2726
runs-on: ${{ matrix.os }}
2827

@@ -52,25 +51,12 @@ jobs:
5251
env:
5352
CGO_ENABLED: ${{ matrix.cgo }}
5453

55-
# Start a PostgreSQL server
56-
# - uses: sqlc-dev/action-setup-postgres@master
57-
# with:
58-
# postgres-version: "16"
59-
# id: postgres
60-
61-
# Start a MySQL server
62-
# - uses: shogo82148/actions-setup-mysql@v1
63-
# with:
64-
# mysql-version: "9.0"
65-
6654
- name: test ./...
6755
run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
6856
env:
6957
CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
7058
CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
7159
SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
72-
# MYSQL_SERVER_URI: root:@tcp(localhost:3306)/mysql?multiStatements=true&parseTime=true
73-
# POSTGRESQL_SERVER_URI: ${{ steps.postgres.outputs.connection-uri }}?sslmode=disable
7460
CGO_ENABLED: ${{ matrix.cgo }}
7561

7662
vuln_check:

0 commit comments

Comments
 (0)