/
githubmirror
/
ydb-go-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-go-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/examples.yml
154 строки
5 KB
Konstantin Prokopenko
Upgrade Go version (#1867)
03 окт 2025, 16:22
Не верифицирован
03 окт 2025, 16:22
acc9411
Код
Авторство
О чём код?
name: examples on: push: branches: - master - release-* pull_request: workflow_dispatch: jobs: basic-ydb: if: (!contains(github.event.pull_request.labels.*.name, 'no examples')) concurrency: group: basic-ydb-${{ github.ref }}-${{ matrix.ydb-version }}-${{ matrix.application }} cancel-in-progress: true runs-on: ubuntu-latest strategy: fail-fast: false matrix: ydb-version: [ 25.2 ] application: [ native/table, native/query ] services: ydb: image: ydbplatform/local-ydb:${{ matrix.ydb-version }} 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 YDB_TABLE_ENABLE_PREPARED_DDL: true options: '-h localhost' env: OS: ubuntu-latest GO: 1.25.x YDB_CONNECTION_STRING: grpc://localhost:2136/local YDB_ANONYMOUS_CREDENTIALS: 1 YDB_VERSION: ${{ matrix.ydb-version }} steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: cache: true - name: Run basic example ${{ matrix.application }} working-directory: ./examples/basic/${{ matrix.application }} run: go run . basic-ydb-database-sql: if: (!contains(github.event.pull_request.labels.*.name, 'no examples')) concurrency: group: basic-ydb-${{ github.ref }}-${{ matrix.ydb-version }}-${{ matrix.application }}-${{ matrix.query_service }} cancel-in-progress: true runs-on: ubuntu-latest strategy: fail-fast: false matrix: ydb-version: [ 25.2 ] application: [ database/sql, gorm, xorm ] query_service: [ true, false ] services: ydb: image: ydbplatform/local-ydb:${{ matrix.ydb-version }} 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 YDB_TABLE_ENABLE_PREPARED_DDL: true options: '-h localhost' env: OS: ubuntu-latest GO: 1.25.x YDB_CONNECTION_STRING: grpc://localhost:2136/local YDB_ANONYMOUS_CREDENTIALS: 1 YDB_VERSION: ${{ matrix.ydb-version }} YDB_DATABASE_SQL_OVER_QUERY_SERVICE: ${{ matrix.query_service }} steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: cache: true - name: Run basic example ${{ matrix.application }} working-directory: ./examples/basic/${{ matrix.application }} run: go run . basic-postgres: if: (!contains(github.event.pull_request.labels.*.name, 'no examples')) concurrency: group: basic-postgres-${{ matrix.application }}-${{ github.ref }} cancel-in-progress: true runs-on: ubuntu-latest strategy: fail-fast: false matrix: application: [ gorm, xorm ] services: postgres: image: postgres env: POSTGRES_PASSWORD: postgres POSTGRES_DB: basic options: >- --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 5 ports: - 5432:5432 env: OS: ubuntu-latest GO: 1.25.x POSTGRES_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/basic?sslmode=disable steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: cache: true - name: Run basic example ${{ matrix.application }} with postgres working-directory: ./examples/basic/${{ matrix.application }} run: go run . basic-sqlite: if: (!contains(github.event.pull_request.labels.*.name, 'no examples')) concurrency: group: basic-sqlite-${{ matrix.application }}-${{ github.ref }} cancel-in-progress: true runs-on: ubuntu-latest strategy: fail-fast: false matrix: application: [ gorm, xorm ] env: OS: ubuntu-latest GO: 1.25.x SQLITE_CONNECTION_STRING: ${{ matrix.application }}.db steps: - name: Checkout code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: cache: true - name: Run basic example ${{ matrix.application }} with sqlite working-directory: ./examples/basic/${{ matrix.application }} run: go run .