-
-
Notifications
You must be signed in to change notification settings - Fork 50
33 lines (31 loc) · 954 Bytes
/
postgres.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
on:
pull_request:
paths:
- "packages/apalis-sql/src/lib.rs"
- "packages/apalis-sql/src/postgres.rs"
- "packages/apalis-sql/src/migrations/postgres/**"
- "packages/apalis-sql/src/Cargo.toml"
- ".github/workflows/postgres.yaml"
name: Postgres CI
jobs:
test-sqlite:
name: Test Suite Postgres
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:postgres@localhost/postgres
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: cargo test --no-default-features --features postgres,migrate,tokio-comp -- --test-threads=1
working-directory: packages/apalis-sql