Skip to content

Commit

Permalink
add docker to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lur1an committed May 7, 2024
1 parent 3971b24 commit c5847f6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2

- name: Start EdgeDB
run: docker compose up -d

- name: Run tests
env:
EDGEDB_HOST: localhost
EDGEDB_PORT: 5656
EDGEDB_SERVER_SECURITY: insecure_dev_mode

run: cargo test --verbose -- --nocapture

- name: Test server
working-directory: ./backend/server
run: cargo test --verbose -- --nocapture
10 changes: 10 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
edgedb:
image: edgedb/edgedb:latest
environment:
EDGEDB_SERVER_SECURITY: insecure_dev_mode
volumes:
- "./dbschema:/dbschema"
ports:
- "5656:5656"

1 change: 1 addition & 0 deletions ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ pub mod devtools;
mod serde_ext;

extern crate const_format;

pub use edgedb_tokio_ext_derive::*;
pub use serde_ext::SerdeClientExt;

0 comments on commit c5847f6

Please sign in to comment.