-
-
Notifications
You must be signed in to change notification settings - Fork 50
45 lines (43 loc) · 1.38 KB
/
mysql.yaml
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
on:
push:
paths:
- "packages/apalis-sql/src/lib.rs"
- "packages/apalis-sql/mysql.rs"
- "packages/apalis-sql/src/migrations/mysql/**"
- "packages/apalis-sql/src/Cargo.toml"
- ".github/workflows/mysql.yaml"
pull_request:
paths:
- "packages/apalis-sql/src/lib.rs"
- "packages/apalis-sql/src/mysql.rs"
- "packages/apalis-sql/src/migrations/mysql/**"
- "packages/apalis-sql/src/Cargo.toml"
- ".github/workflows/mysql.yaml"
name: Mysql CI
jobs:
test-mysql:
name: Test Suite with MySQL
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
env:
DATABASE_URL: mysql://test:test@localhost/test
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo test --no-default-features --features mysql,migrate,tokio-comp,chrono -- --test-threads=1
working-directory: packages/apalis-sql
- run: cargo test --no-default-features --features mysql,migrate,tokio-comp,time -- --test-threads=1
working-directory: packages/apalis-sql