Skip to content

Try another dependabot config variant #91

Try another dependabot config variant

Try another dependabot config variant #91

Workflow file for this run

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