@@ -13,10 +13,10 @@ jobs:
1313 name : build ${{ matrix.goos }}/${{ matrix.goarch }}
1414 runs-on : ubuntu-24.04
1515 steps :
16- - uses : actions/checkout@v5
16+ - uses : actions/checkout@v6
1717 - uses : actions/setup-go@v6
1818 with :
19- go-version : ' 1.25 .0'
19+ go-version : ' 1.26 .0'
2020 - run : go build ./...
2121 env :
2222 CGO_ENABLED : " 0"
@@ -25,10 +25,10 @@ jobs:
2525 test :
2626 runs-on : ubuntu-24.04
2727 steps :
28- - uses : actions/checkout@v5
28+ - uses : actions/checkout@v6
2929 - uses : actions/setup-go@v6
3030 with :
31- go-version : ' 1.25 .0'
31+ go-version : ' 1.26 .0'
3232
3333 - name : install gotestsum
3434 run : go install gotest.tools/gotestsum@latest
@@ -50,13 +50,20 @@ jobs:
5050 env :
5151 CGO_ENABLED : " 0"
5252
53+ - name : install databases
54+ run : go run ./cmd/sqlc-test-setup install
55+
56+ - name : start databases
57+ run : go run ./cmd/sqlc-test-setup start
58+
5359 - name : test ./...
54- run : gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m ./...
55- if : ${{ matrix.os }} != "windows-2022"
60+ run : gotestsum --junitfile junit.xml -- --tags=examples -timeout 20m -failfast ./...
5661 env :
5762 CI_SQLC_PROJECT_ID : ${{ secrets.CI_SQLC_PROJECT_ID }}
5863 CI_SQLC_AUTH_TOKEN : ${{ secrets.CI_SQLC_AUTH_TOKEN }}
5964 SQLC_AUTH_TOKEN : ${{ secrets.CI_SQLC_AUTH_TOKEN }}
65+ POSTGRESQL_SERVER_URI : " postgres://postgres:postgres@127.0.0.1:5432/postgres?sslmode=disable"
66+ MYSQL_SERVER_URI : " root:mysecretpassword@tcp(127.0.0.1:3306)/mysql?multiStatements=true&parseTime=true"
6067 CGO_ENABLED : " 0"
6168
6269 vuln_check :
0 commit comments