Skip to content

Commit 45b9529

Browse files
committed
build: add workflow for integration tests
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
1 parent 74e3b4c commit 45b9529

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
branches:
66
- main
77
paths:
8-
- '**.sql'
9-
- '**.control'
8+
- '**/*.sql'
9+
- '**/*.control'
1010

1111
permissions:
1212
contents: write
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -119,7 +119,8 @@ jobs:
119119
CHORES=$(echo "$COMMITS" | grep -E "^chore" | sed 's/^/- /' || true)
120120
BUILDS=$(echo "$COMMITS" | grep -E "^build" | sed 's/^/- /' || true)
121121
DOCS=$(echo "$COMMITS" | grep -E "^docs" | sed 's/^/- /' || true)
122-
OTHER_COMMITS=$(echo "$COMMITS" | grep -v -E "^(feat|fix|chore|build|docs)" | sed 's/^/- /' || true)
122+
TEST=$(echo "$COMMITS" | grep -E "^test" | sed 's/^/- /' || true)
123+
OTHER_COMMITS=$(echo "$COMMITS" | grep -v -E "^(feat|fix|chore|build|docs|test)" | sed 's/^/- /' || true)
123124
124125
CHANGELOG=""
125126
if [ -n "$FEATURES" ]; then
@@ -131,6 +132,9 @@ jobs:
131132
if [ -n "$DOCS" ]; then
132133
CHANGELOG="${CHANGELOG}### Documentation"$'\n'"$DOCS"$'\n\n'
133134
fi
135+
if [ -n "$TEST" ]; then
136+
CHANGELOG="${CHANGELOG}### Tests"$'\n'"$TEST"$'\n\n'
137+
fi
134138
if [ -n "$CHORES" ] || [ -n "$BUILDS" ]; then
135139
CHANGELOG="${CHANGELOG}### Maintenance"$'\n'
136140
[ -n "$CHORES" ] && CHANGELOG="${CHANGELOG}$CHORES"$'\n'

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**/*.sql'
9+
- '**/*.control'
10+
11+
jobs:
12+
update:
13+
name: Integration
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run tests
20+
run: make test

pg_dispatch.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Ref: https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-FILES
22

33
comment = 'Asynchronous SQL dispatcher'
4-
default_version = '0.1.3'
4+
default_version = '0.1.4'
55
relocatable = false
66
requires = 'pgcrypto, pg_cron'
77
superuser = false

0 commit comments

Comments
 (0)