Skip to content

test: add psql unit tests #23

test: add psql unit tests

test: add psql unit tests #23

Workflow file for this run

name: ci
on:
push:
branches: ["main"]
paths:
- "src/**"
- "tests/**"
- ".github/workflows/**"
pull_request:
branches: ["main"]
paths:
- "src/**"
- "tests/**"
- ".github/workflows/**"
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose