Skip to content

Commit

Permalink
Merge pull request #19 from Tietokilta/nuke-admin
Browse files Browse the repository at this point in the history
feat: remove admin functionality and filesystem dependence
  • Loading branch information
lajp authored Aug 11, 2024
2 parents 5dd6452 + 510b88a commit b4227b0
Show file tree
Hide file tree
Showing 29 changed files with 303 additions and 1,364 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,18 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_DB: laskugeneraattori
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- name: Install Diesel
run: cargo install diesel_cli --features=postgres
- name: Create Test DB
env:
DATABASE_URL: postgres://postgres:postgres@localhost/laskugeneraattori
run: diesel migration run

- name: Run tests
env:
DATABASE_URL: postgres://postgres:postgres@localhost/laskugeneraattori
MAILGUN_URL: https://api.eu.mailgun.net/v3/laskutus.tietokilta.fi/messages
MAILGUN_USER: api
MAILGUN_PASSWORD: password
MAILGUN_TO: Rahastonhoitaja <rahastonhoitaja@tietokilta.fi>
MAILGUN_FROM: noreply@laskutus.tietokilta.fi
run: cargo test

fmt:
Expand Down
Loading

0 comments on commit b4227b0

Please sign in to comment.