Bump the all-dependencies group with 3 updates #100
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:16 | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Setup rust cache | |
uses: Swatinem/rust-cache@v2 | |
- name: cargo build | |
run: cargo build | |
env: | |
SQLX_OFFLINE: true | |
- name: cargo fmt | |
run: cargo fmt --all -- --check | |
- name: cargo clippy | |
run: cargo clippy -- -D warnings | |
- name: cargo test | |
run: cargo test | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432 | |
SQLX_OFFLINE: true |