Skip to content

Commit

Permalink
Test with embedded Lemmy instance (#70)
Browse files Browse the repository at this point in the history
* Test with embedded Lemmy instance

* fix tests

* update lemmy

* fix clippy

* add postgres service

* add database url env var
  • Loading branch information
Nutomic authored Dec 21, 2022
1 parent e8f3df3 commit ddab018
Show file tree
Hide file tree
Showing 12 changed files with 2,594 additions and 232 deletions.
16 changes: 14 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ steps:
- /root/.cargo/bin/cargo fmt -- --check

- name: cargo clippy
image: rust:1.62-buster
image: rust:1.66-buster
environment:
CARGO_HOME: .cargo
commands:
- rustup component add clippy
- cargo clippy --workspace --tests --all-targets --all-features -- -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro

- name: cargo test
image: rust:1.62-buster
image: rust:1.66-buster
environment:
LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
CARGO_HOME: .cargo
commands:
- cargo test --workspace --no-fail-fast

Expand Down Expand Up @@ -64,3 +69,10 @@ steps:
when:
ref:
- refs/tags/*

services:
- name: database
image: postgres:14-alpine
environment:
POSTGRES_USER: lemmy
POSTGRES_PASSWORD: password
Loading

0 comments on commit ddab018

Please sign in to comment.