Skip to content

Commit

Permalink
CI test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
IgKh committed Jul 4, 2022
1 parent 7286fc7 commit 7950680
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test
on:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
container:
image: postgres:13-bullseye
env:
POSTGRES_PASSWORD: something

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Install dependencies
run: apt-get update && apt-get install -y gcc make postgresql-server-dev-13 hspell

- name: Build pg_hspell
run: make && make install

- name: Start database
run: /usr/local/bin/docker-entrypoint.sh postgres &

- name: Wait for database up
run: pg_isready --username=postgres --timeout=10

- name: Run regression tests
run: make installcheck REGRESS_OPTS="--user postgres"
4 changes: 4 additions & 0 deletions pg_hspell.control
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment = 'text search dictionary template using libhspell'
default_version = '1.0'
module_pathname = '$libdir/dict_hspell'
relocatable = true

0 comments on commit 7950680

Please sign in to comment.