Skip to content

Fix

Fix #4

Workflow file for this run

name: tests
on:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Setup PostgreSQL
run: |
sudo service postgresql start
sudo -u postgres createuser --superuser --login $USER
createdb $USER
echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf
- name: Build
run: cargo build
- name: Format
run: cargo fmt --all -- --check
- name: Install cargo-nextest
run: cargo install cargo-nextest
- name: Test
run: cargo nextest run