aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2023-07-27 09:34:13 +0100
committerGitHub <noreply@github.com>2023-07-27 09:34:13 +0100
commitc10ba684e0e22250b55bef0d14f0898ac900b28d (patch)
tree23a4e3738e90cf94242dbd0144f0b2262f942388 /.github/workflows/rust.yml
parentuse Ctrl-n instead of Alt-n on macOS (#1106) (diff)
downloadatuin-c10ba684e0e22250b55bef0d14f0898ac900b28d.zip
some simple server tests (#1096)
* some simple server tests * fmt * logging in server test * log server errors * fix postgres uri * postgres ports * localhost again? * Rebase fixes --------- Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index d8411fc1..4b553f3e 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -44,6 +44,16 @@ jobs:
test:
runs-on: ubuntu-latest
+ services:
+ postgres:
+ image: postgres
+ env:
+ POSTGRES_USER: atuin
+ POSTGRES_PASSWORD: pass
+ POSTGRES_DB: atuin
+ ports:
+ - 5432:5432
+
steps:
- uses: actions/checkout@v3
@@ -62,6 +72,8 @@ jobs:
- name: Run cargo test
run: cargo test --all-features --workspace
+ env:
+ ATUIN_DB_URI: postgres://atuin:pass@localhost:5432/atuin
- name: Run cargo check (all features)
run: cargo check --all-features --workspace