Allow postgres connections from local #3
Workflow file for this run
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: 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 |