Skip to content

Commit 086a963

Browse files
committed
moar
1 parent df1656f commit 086a963

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
pg_version: [14, 15, 16, 17, 18]
15+
16+
services:
17+
postgres:
18+
image: postgres:${{ matrix.pg_version }}
19+
env:
20+
POSTGRES_USER: postgres
21+
POSTGRES_PASSWORD: postgres
22+
POSTGRES_DB: pg_column_tetris_test
23+
ports:
24+
- 5432:5432
25+
options: >-
26+
--health-cmd="pg_isready -U postgres"
27+
--health-interval=10s
28+
--health-timeout=5s
29+
--health-retries=5
30+
31+
env:
32+
PGHOST: localhost
33+
PGPORT: 5432
34+
PGUSER: postgres
35+
PGPASSWORD: postgres
36+
PGDATABASE: pg_column_tetris_test
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- name: Install extension
42+
run: |
43+
# Strip the \echo...\quit guard so we can load the SQL directly
44+
sed '/^\\echo.*\\quit/d' pg_column_tetris--0.1.0.sql | psql -v ON_ERROR_STOP=1
45+
46+
- name: Run tests
47+
run: |
48+
for f in test/sql/*.sql; do
49+
echo "=== Running $f ==="
50+
psql -v ON_ERROR_STOP=1 -f "$f"
51+
echo "=== $f passed ==="
52+
done

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<p align="center">
2+
<img src="logo.jpg" alt="pg_column_tetris logo" width="300">
3+
</p>
4+
15
# pg_column_tetris
26

37
A PostgreSQL extension that enforces optimal column alignment to minimize row padding waste.

logo.jpg

51.6 KB
Loading

0 commit comments

Comments
 (0)