feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1

Merged
GKaszewski merged 334 commits from v2 into master 2026-05-16 09:42:43 +00:00
Showing only changes of commit cf94b0ba6c - Show all commits

View File

@@ -6,9 +6,25 @@ on:
pull_request:
jobs:
test:
# Unit tests — no database required.
# All business logic is tested via TestStore (in-memory port implementations).
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: unit tests
run: |
cargo test --workspace \
--exclude postgres \
--exclude postgres-federation \
--exclude postgres-search
# Integration tests — require a real PostgreSQL instance.
# These test that the SQL queries in the adapter crates are correct.
integration:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
@@ -22,16 +38,15 @@ jobs:
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/thoughts_test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: test
run: cargo test --workspace
- name: integration tests
run: |
cargo test \
-p postgres \
-p postgres-federation \
-p postgres-search