Test Packages #6
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 | |
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 |