Skip to content

chore(deps): update postgres docker tag to v16 #324

chore(deps): update postgres docker tag to v16

chore(deps): update postgres docker tag to v16 #324

Workflow file for this run

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:16
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