fix(deps): update dependency sqlalchemy to v2.0.33 #339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
build_cache: | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/cache_cargo | |
- name: build | |
run: cargo build | |
working-directory: app | |
fmt: | |
runs-on: ubuntu-latest | |
needs: build_cache | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup component add rustfmt | |
- uses: ./.github/actions/cache_cargo | |
- name: fmt | |
run: cargo fmt --all -- --check | |
working-directory: app | |
clippy: | |
runs-on: ubuntu-latest | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
needs: build_cache | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup component add clippy | |
- uses: ./.github/actions/cache_cargo | |
- name: clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
working-directory: app | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
env: | |
RUSTC_FORCE_INCREMENTAL: 1 | |
needs: build_cache | |
steps: | |
- name: create database for test | |
run: PGPASSWORD=postgres psql -h localhost -U postgres -c "CREATE DATABASE test" | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/cache_cargo | |
- name: test | |
run: cargo test --all -- --nocapture | |
working-directory: app |