|
9 | 9 | strategy:
|
10 | 10 | matrix:
|
11 | 11 | # 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] |
14 | 13 | cgo: ['1', '0']
|
15 | 14 | # Workaround no native support for conditional matrix items
|
16 | 15 | # 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' |
26 | 25 | name: test ${{ matrix.os }} cgo=${{ matrix.cgo }}
|
27 | 26 | runs-on: ${{ matrix.os }}
|
28 | 27 |
|
@@ -52,25 +51,12 @@ jobs:
|
52 | 51 | env:
|
53 | 52 | CGO_ENABLED: ${{ matrix.cgo }}
|
54 | 53 |
|
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 |
| - |
66 | 54 | - name: test ./...
|
67 | 55 | run: gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
|
68 | 56 | env:
|
69 | 57 | CI_SQLC_PROJECT_ID: ${{ secrets.CI_SQLC_PROJECT_ID }}
|
70 | 58 | CI_SQLC_AUTH_TOKEN: ${{ secrets.CI_SQLC_AUTH_TOKEN }}
|
71 | 59 | 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 |
74 | 60 | CGO_ENABLED: ${{ matrix.cgo }}
|
75 | 61 |
|
76 | 62 | vuln_check:
|
|
0 commit comments