Skip to content

Commit

Permalink
Merge branch 'main' into aumetra/db-restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Mar 17, 2024
2 parents 922527f + 43cfc17 commit d9b066d
Show file tree
Hide file tree
Showing 51 changed files with 1,285 additions and 915 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_LOG: "debug"
RUSTFLAGS: "-C debuginfo=0"

jobs:
Expand Down Expand Up @@ -37,36 +38,11 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: Swatinem/rust-cache@v2
- uses: rui314/setup-mold@v1
- run: nix develop --impure --command bash -c "unset LD_LIBRARY_PATH && cargo test --all-features -- --show-output"
env:
DATABASE_URL: "postgres://postgres:postgres@localhost/test_db"
REDIS_URL: "redis://localhost"
- uses: taiki-e/install-action@nextest
- run: nix develop --impure --command bash -c "unset DATABASE_URL LD_LIBRARY_PATH REDIS_URL && cargo nextest run --all-features"
Loading

0 comments on commit d9b066d

Please sign in to comment.