Skip to content

reamde fix

reamde fix #25

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
pg: [14, 15, 16, 17, 18]
name: PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- run: pg-start ${{ matrix.pg }}
- uses: actions/checkout@v4
- name: Install extension
run: |
make install
psql -U postgres -d postgres -c "CREATE DATABASE pg_column_tetris_test"
psql -U postgres -d pg_column_tetris_test -v ON_ERROR_STOP=1 -c "CREATE EXTENSION pg_column_tetris"
- name: Run tests
run: |
for f in test/sql/*.sql; do
echo "=== Running $f ==="
psql -U postgres -d pg_column_tetris_test -v ON_ERROR_STOP=1 -f "$f"
echo "=== $f passed ==="
done