fix: update node version matrix in CI configuration and enhance test … #764
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.event_name }}-${{ github.ref }}-${{ matrix.node-version }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [20, 22, 24] | |
services: | |
ydb: | |
image: ghcr.io/ydb-platform/local-ydb:24.3 | |
ports: | |
- 2135:2135 | |
- 2136:2136 | |
- 8765:8765 | |
volumes: | |
- /tmp/ydb_certs:/ydb_certs | |
env: | |
YDB_ENABLE_COLUMN_TABLES: true | |
YDB_USE_IN_MEMORY_PDISKS: true | |
YDB_LOCAL_SURVIVE_RESTART: true | |
YDB_TABLE_ENABLE_PREPARED_DDL: true | |
YDB_FEATURE_FLAGS: enable_topic_service_tx | |
options: '-h localhost' | |
env: | |
YDB_STATIC_CREDENTIALS_USER: root | |
YDB_STATIC_CREDENTIALS_PASSWORD: 1234 | |
YDB_STATIC_CREDENTIALS_ENDPOINT: grpc://localhost:2136 | |
YDB_CONNECTION_STRING: grpc://localhost:2136/local | |
YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local | |
YDB_SSL_ROOT_CERTIFICATES_FILE: /ydb_certs/ca.pem | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm run build | |
- run: npm run test:all |