Skip to content

Allow postgres connections from local #3

Allow postgres connections from local

Allow postgres connections from local #3

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: Build
run: cargo build
- name: Format
run: cargo fmt --all -- --check
- name: Install cargo-nextest
run: cargo install cargo-nextest
- 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" >> /etc/postgresql/14/main/pg_hba.conf
- name: Test
run: cargo nextest run