61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: test ydb
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
env:
|
|
GOPROXY: https://goproxy.io,direct
|
|
GOPATH: /go_path
|
|
GOCACHE: /go_cache
|
|
|
|
jobs:
|
|
lint:
|
|
name: test ydb
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# - name: cache go path
|
|
# id: cache-go-path
|
|
# uses: https://github.com/actions/cache@v3
|
|
# with:
|
|
# path: /go_path
|
|
# key: go_path-${{ github.repository }}-${{ github.ref_name }}
|
|
# restore-keys: |
|
|
# go_path-${{ github.repository }}-
|
|
# go_path-
|
|
# - name: cache go cache
|
|
# id: cache-go-cache
|
|
# uses: https://github.com/actions/cache@v3
|
|
# with:
|
|
# path: /go_cache
|
|
# key: go_cache-${{ github.repository }}-${{ github.ref_name }}
|
|
# restore-keys: |
|
|
# go_cache-${{ github.repository }}-
|
|
# go_cache-
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.20
|
|
- uses: actions/checkout@v3
|
|
#- name: test ydb (secure connection)
|
|
# run: TEST_YDB_SCHEME=grpcs TEST_YDB_HOST=ydb:2135 TEST_YDB_DBNAME=local make test-ydb
|
|
- name: test ydb (insecure connection)
|
|
run: TEST_YDB_SCHEME=grpc TEST_YDB_HOST=ydb:2136 TEST_YDB_DBNAME=local make test-ydb
|
|
|
|
services:
|
|
ydb:
|
|
image: cr.yandex/yc/yandex-docker-local-ydb:23.2
|
|
ports:
|
|
- 2135:2135
|
|
- 2136:2136
|
|
- 8765:8765
|
|
#volumes:
|
|
# - /tmp/ydb_certs:/ydb_certs
|
|
env:
|
|
YDB_LOCAL_SURVIVE_RESTART: true
|
|
YDB_USE_IN_MEMORY_PDISKS: true
|
|
|
|
env:
|
|
#YDB_SSL_ROOT_CERTIFICATES_FILE: /tmp/ydb_certs/ca.pem
|
|
YDB_SESSIONS_SHUTDOWN_URLS: http://ydb:8765/actors/kqp_proxy?force_shutdown=all
|
|
HIDE_APPLICATION_OUTPUT: 1 |