Skip to content

Commit

Permalink
feature: add basic metadata and CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pgguru committed Feb 8, 2024
1 parent 0ebd5ec commit 299bd5e
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 🧪 Continuous Integration
on:
push:
branches: ['*']
pull_request:
schedule:
- cron: '0 12 5 * *' # Monthly at noon on the fifth
jobs:
build:
strategy:
matrix:
pg: [16, 15, 14, 13, 12]
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- run: pg-start ${{ matrix.pg }}
- uses: actions/checkout@v4
- run: prove t/*.pl
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 🚀 Release on PGXN
on:
push:
# Release on semantic version tag.
tags: ['v[0-9]+.[0-9]+.[0-9]+']
jobs:
release:
name: Release on PGXN
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Bundle the Release
run: pgxn-bundle
- name: Release on PGXN
env:
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }}
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }}
run: pgxn-release
46 changes: 46 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "pgmin",
"abstract": "Minimize your pesky postgres queries",
"description": "Minimize and/or obfuscate SQL files to be used in psql",
"version": "0.0.1",
"maintainer": [
"David Christensen <[email protected]>"
],
"license": "apache_2_0",
"provides": {
"pgmin": {
"abstract": "Minimize SQL queries",
"file": "pgmin",
"docfile": "README.md",
"version": "0.0.1"
}
},
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": "12.0.0",
"python": "3.7.0"
}
},
},
"resources": {
"bugtracker": {
"web": "https://github.com/pgguru/pgmin/issues/"
},
"repository": {
"url": "git://github.com/pgguru/pgmin.git",
"web": "https://github.com/pgguru/pgmin/",
"type": "git"
}
},
"generated_by": "David Christensen",
"meta-spec": {
"version": "1.0.0",
"url": "https://pgxn.org/meta/spec.txt"
},
"tags": [
"obfuscate",
"sql",
"silly",
]
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TAP_TESTS = t/001_basic.pl
PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

0 comments on commit 299bd5e

Please sign in to comment.