Skip to content

Commit 400795c

Browse files
committed
Add CI workflow
Builds and runs tests on Postgres 14 - 16. Couldn't get it to automatically init the submodule, so doing it manually. One test fails on my system; let's see if it works on GitHub.
1 parent 21f2297 commit 400795c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ["*"]
5+
pull_request:
6+
schedule:
7+
- cron: '0 12 15 * *' # Monthly at noon on the 15th
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
pg: [16, 15, 14]
13+
name: 🐘 PostgreSQL ${{ matrix.pg }}
14+
runs-on: ubuntu-latest
15+
container: pgxn/pgxn-tools
16+
steps:
17+
- run: pg-start ${{ matrix.pg }}
18+
- uses: actions/checkout@v4
19+
- run: git submodule update --init --recursive
20+
- run: pg-build-test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.o
22
*.so
3+
*.dylib
34
results
45
regression.diffs
56
regression.out

0 commit comments

Comments
 (0)