Skip to content

Commit

Permalink
Add mest workflow (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoema authored Aug 25, 2024
1 parent 7edcfb5 commit b8b7068
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mest-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: mest-check

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
test:
strategy:
fail-fast: false
matrix:
pg: [16]
name: PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
steps:
# Install PostgreSQL
- uses: adjust/pg-ext-actions/pg-setup@master
with:
version: ${{ matrix.pg }}
install-contrib: 'false'

# Clone and build extension, run tests
- uses: actions/checkout@v2
- uses: adjust/pg-ext-actions/build-check@master
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c src/**/*.c)) # object file
TESTS = $(wildcard sql/*.sql) # use sql/*.sql as testfiles
REGRESS = $(sort $(patsubst sql/%.sql,%,$(TESTS))) # test names

TAP_TESTS = 1

LDFLAGS_SL += $(filter -lm, $(LIBS))

PG_CONFIG = pg_config
Expand Down
4 changes: 0 additions & 4 deletions sql/01_create_extension.test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ DROP TABLE IF EXISTS tbl_path;
CREATE TABLE tbl_path(k integer PRIMARY KEY, p path);
\copy tbl_path FROM 'data/tbl_path.data'

DROP TABLE IF EXISTS tbl_tfloat;

DROP TABLE IF EXISTS tbl_tint;

DROP TABLE IF EXISTS tbl_timestamptz;
CREATE TABLE tbl_timestamptz(k integer PRIMARY KEY, t timestamp with time zone);
\copy tbl_timestamptz FROM 'data/tbl_timestamptz.data'
Expand Down

0 comments on commit b8b7068

Please sign in to comment.