Skip to content

Commit

Permalink
add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nathannli committed Oct 16, 2024
1 parent de0ac60 commit 0899083
Show file tree
Hide file tree
Showing 9 changed files with 726 additions and 454 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,31 @@ on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

SQLX_VERSION: 0.8.0
SQLX_FEATURES: "rustls,postgres"
APP_USER: app
APP_USER_PWD: secret
APP_DB_NAME: newsletter

jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test

fmt:
name: Rustfmt
with:
key: sqlx-${{ env.SQLX_VERSION }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Loading

0 comments on commit 0899083

Please sign in to comment.