-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add basic metadata and CI workflow
- Loading branch information
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |