Skip to content

Test Packages

Test Packages #4

Workflow file for this run

name: tests
run-name: Test Packages
on: push
jobs:
build-packages-workflow:
uses: ./.github/workflows/build.yml
installcheck:
runs-on: ubuntu-latest
container:
image: postgres:latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_DB: testdb
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Prepare PostgreSQL
run: |
mkdir -p $PGDATA
chown postgres $PGDATA
su postgres -c "initdb"
su postgres -c "pg_ctl start -D $PGDATA"
- name: Install dependencies
run: |
apt update -y
apt install -y make
- name: Build and run tests
run: |
make install
PGUSER=postgres make installcheck