Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@ jobs:
tests:
services:
ydb:
image: cr.yandex/yc/yandex-docker-local-ydb:${{ matrix.ydb-versions }}
image: ydbplatform/local-ydb:${{ matrix.ydb-versions }}
ports:
- 2135:2135
- 2136:2136
- 8765:8765
volumes:
- /tmp/ydb_certs:/ydb_certs
env:
YDB_USE_IN_MEMORY_PDISKS: true
options: '-h localhost'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: [ '7.2', '7.4', '8.0', '8.2' ]
ydb-versions: ['stable-22-5', 'trunk', '23.3', '23.2', '23.1']
ydb-versions: ['24.4', '25.4', 'latest', 'edge', 'trunk']
steps:
- uses: actions/checkout@v4
name: Checkout
Expand Down Expand Up @@ -61,6 +59,14 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# SELECT version() exists from 24.3 (24.1 and older reject it); the value is not always
# numeric - e.g. `stable-25-4-1` on 25.4 and `main` on trunk - so compare it with care.
- name: Detect YDB version
run: |
version=$(docker exec $(docker ps --latest --quiet) /ydb -e grpc://localhost:2136 -d /local scripting yql -s "SELECT version() AS v" --format json-unicode | jq -r .v)
echo "YDB version: $version"
echo "YDB_VERSION=$version" >> "$GITHUB_ENV"

- name: Create YDB User
run: docker exec $(docker ps --latest --quiet) /ydb -e grpc://localhost:2136 -d /local scripting yql -s "CREATE USER testuser PASSWORD 'testpassword'"

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* CI: replaced the stale `cr.yandex/yc/yandex-docker-local-ydb` test image (numbered tags stop at 23.3, no `latest`) with the actively-maintained `ydbplatform/local-ydb` (used by the Go/Python/Java/.NET/Rust/Node.js SDKs); refreshed the version matrix to `['24.4', '25.4', 'latest', 'edge', 'trunk']`; the real server version (`SELECT version()`, available from 24.3) is exported to later CI steps as `YDB_VERSION`

## 1.16.3
* improve log
Expand Down
Loading