-
Notifications
You must be signed in to change notification settings - Fork 240
51 lines (44 loc) · 1.4 KB
/
test-quaint.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
name: "Quaint: integration tests"
on:
push:
branches:
- main
pull_request:
paths:
- "quaint/**"
- "!.github/workflows/test-quaint.yml"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- "--lib --features=all-native"
env:
TEST_MYSQL: "mysql://root:prisma@localhost:3306/prisma"
TEST_MYSQL8: "mysql://root:prisma@localhost:3307/prisma"
TEST_MYSQL_MARIADB: "mysql://root:prisma@localhost:3308/prisma"
TEST_PSQL: "postgres://postgres:prisma@localhost:5432/postgres"
TEST_MSSQL: "jdbc:sqlserver://localhost:1433;database=master;user=SA;password=<YourStrong@Passw0rd>;trustServerCertificate=true"
TEST_CRDB: "postgresql://[email protected]:26259/postgres"
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.features }}
- name: Start Databases
run: docker compose -f docker-compose.yml up -d
working-directory: ./quaint
- name: Sleep for 20s
uses: juliangruber/sleep-action@v2
with:
time: 20s
- name: Run tests
run: cargo test ${{ matrix.features }}
working-directory: ./quaint