Skip to content

Commit 50c6d40

Browse files
committed
Run DB tests on CI
1 parent b10e27c commit 50c6d40

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ jobs:
1818
run: rustup update stable && rustup default stable && rustup component add rustfmt
1919
- run: cargo fmt --all --check
2020

21+
test:
22+
name: Test
23+
runs-on: ubuntu-latest
24+
env:
25+
TEST_DB_URL: postgres://postgres:postgres@localhost:5432/postgres
26+
services:
27+
postgres:
28+
image: postgres:14
29+
env:
30+
POSTGRES_USER: postgres
31+
POSTGRES_PASSWORD: postgres
32+
POSTGRES_DB: postgres
33+
ports:
34+
- 5432:5432
35+
steps:
36+
- uses: actions/checkout@v4
37+
- run: rustup toolchain install stable --profile minimal
38+
- uses: Swatinem/rust-cache@v2
39+
- name: Run tests
40+
run: cargo test --workspace --all-targets
41+
2142
ci:
2243
name: CI
2344
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)