forked from prisma/prisma-engines
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (66 loc) · 1.97 KB
/
query-engine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Query Engine
on:
push:
branches:
- main
pull_request:
paths-ignore:
- '.buildkite/**'
- '*.md'
- 'LICENSE'
- 'CODEOWNERS'
- 'renovate.json'
jobs:
rust-vitess-tests:
name: "Rust test suite: ${{ matrix.database.name }} on Linux"
strategy:
fail-fast: false
matrix:
database:
- name: "vitess_5_7"
single_threaded: true
connector: "vitess"
version: "5.7"
- name: "vitess_8_0"
single_threaded: true
connector: "vitess"
version: "8.0"
- name: "postgres15"
single_threaded: false
connector: "postgres"
version: "15"
env:
LOG_LEVEL: "info"
LOG_QUERIES: "y"
RUST_LOG_FORMAT: "devel"
RUST_BACKTRACE: "1"
CLICOLOR_FORCE: "1"
CLOSED_TX_CLEANUP: "2"
SIMPLE_TEST_MODE: "1"
QUERY_BATCH_SIZE: "10"
TEST_RUNNER: "direct"
TEST_CONNECTOR: ${{ matrix.database.connector }}
TEST_CONNECTOR_VERSION: ${{ matrix.database.version }}
runs-on: buildjet-16vcpu-ubuntu-2004
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
continue-on-error: true
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Start ${{ matrix.database.name }}"
run: make start-${{ matrix.database.name }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- run: export WORKSPACE_ROOT=$(pwd) && cargo test --package query-engine-tests -- --test-threads=1
if: ${{ matrix.database.single_threaded }}
env:
CLICOLOR_FORCE: 1
- run: export WORKSPACE_ROOT=$(pwd) && cargo test --package query-engine-tests -- --test-threads=8
if: ${{ !matrix.database.single_threaded }}
env:
CLICOLOR_FORCE: 1