File tree Expand file tree Collapse file tree 2 files changed +54
-16
lines changed Expand file tree Collapse file tree 2 files changed +54
-16
lines changed Original file line number Diff line number Diff line change 2929 path : changes.txt
3030 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3131 header : gorelease
32- examples :
33- concurrency :
34- group : examples-${{ github.ref }}
35- cancel-in-progress : true
36- runs-on : ubuntu-latest
37- steps :
38- - name : Install Go
39- uses : actions/setup-go@v3
40- with :
41- go-version : " 1.20"
42- - name : Checkout code
43- uses : actions/checkout@v3
44- - name : Build
45- run : |
46- cd examples
47- go build ./...
Original file line number Diff line number Diff line change 1+ name : examples
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - release-*
7+ pull_request :
8+ workflow_dispatch :
9+ jobs :
10+ examples :
11+ concurrency :
12+ group : examples-${{ github.ref }}-${{ matrix.go-version }}-${{ matrix.ydb-version }}-${{ matrix.driver }}
13+ cancel-in-progress : true
14+ runs-on : ubuntu-latest
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ go-version : [ 1.17.x, 1.18.x, 1.19.x, 1.20.x ]
19+ ydb-version : [ 22.5, 23.1 ]
20+ driver : [ native, database_sql, gorm ]
21+ exclude :
22+ - driver : database_sql
23+ go-version : 1.17.x
24+ - driver : gorm
25+ go-version : 1.17.x
26+ services :
27+ ydb :
28+ image : cr.yandex/yc/yandex-docker-local-ydb:${{ matrix.ydb-version }}-slim
29+ ports :
30+ - 2135:2135
31+ - 2136:2136
32+ - 8765:8765
33+ volumes :
34+ - /tmp/ydb_certs:/ydb_certs
35+ env :
36+ YDB_LOCAL_SURVIVE_RESTART : true
37+ YDB_USE_IN_MEMORY_PDISKS : true
38+ options : ' -h localhost'
39+ env :
40+ OS : ubuntu-latest
41+ GO : ${{ matrix.go-version }}
42+ YDB_CONNECTION_STRING : grpc://localhost:2136/local
43+ YDB_ANONYMOUS_CREDENTIALS : 1
44+ steps :
45+ - name : Checkout code
46+ uses : actions/checkout@v3
47+ - name : Install Go
48+ uses : actions/setup-go@v3
49+ with :
50+ go-version : ${{ matrix.go-version }}
51+ cache : true
52+ - name : Run examples for ${{ matrix.driver }}
53+ working-directory : ./examples/basic/${{ matrix.driver }}
54+ run : go run .
You can’t perform that action at this time.
0 commit comments