Compare commits

..

2 Commits

Author SHA1 Message Date
46cb354c9a run in container
All checks were successful
Backend Actions / build (push) Successful in 1m8s
Backend Actions / check (push) Successful in 1m34s
Frontend Actions / check (push) Successful in 1m37s
Frontend Actions / build (push) Successful in 1m33s
Backend Actions / test (push) Successful in 3m41s
Frontend Actions / test (push) Successful in 1m5s
2025-07-28 01:57:13 +01:00
bfda9d3735 fix lints 2025-07-28 01:31:22 +01:00
2 changed files with 5 additions and 3 deletions

View File

@ -41,8 +41,10 @@ jobs:
run: cargo build --release --locked
test:
runs-on: ubuntu-latest
container: git.molloy.xyz/fergus-molloy/ubuntu:rust-nextest
services:
db:
postgres:
image: postgres:17-alpine
ports:
- "5432:5432"
@ -55,7 +57,6 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: rust-nextest
defaults:
run:
working-directory: ./backend
@ -74,7 +75,7 @@ jobs:
- name: Run Tests
run: ./scripts/test.sh
env:
POSTGRES_URL: "postgresql://postgres:postgres@localhost:5432"
POSTGRES_URL: "postgresql://postgres:postgres@postgres:5432"
- name: Upload Test Logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3

View File

@ -12,6 +12,7 @@ pub struct NuState {
pub config: Config,
}
impl NuState {
#[must_use]
pub fn new(db: PgPool, config: Config) -> Self {
Self { db, config }
}