Skip to content

Commit

Permalink
Merge pull request #3 from theory/pgxn
Browse files Browse the repository at this point in the history
Add PGXN META.json and test and release workflows
  • Loading branch information
pgguru authored Feb 5, 2024
2 parents 4f43b1d + 5f053e0 commit e12a283
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.editorconfig export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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:
image: pgxn/pgxn-tools
options: -e AS_USER=pgtest
steps:
- run: pg-start ${{ matrix.pg }}
- uses: actions/checkout@v4
- run: pg-build-test
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.o
*.so
*.dylib
46 changes: 46 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "pg_kaboom",
"abstract": "Devious SQL-based SQL tools to crash your PostgreSQL server",
"description": "Fault Injection Software to generate specific types of crashes in your Postgres server",
"version": "0.0.1",
"maintainer": [
"David Christensen <[email protected]>"
],
"license": "apache_2_0",
"provides": {
"pg_kaboom": {
"abstract": "Blow things up in interesting and useful^W^W ways",
"file": "pg_kaboom.c",
"docfile": "README.md",
"version": "0.0.1"
}
},
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": ">= 12.0.0"
}
}
},
"resources": {
"bugtracker": {
"web": "https://github.com/CrunchyData/pg_kaboom/issues/"
},
"repository": {
"url": "git://github.com/CrunchyData/pg_kaboom.git",
"web": "https://github.com/CrunchyData/pg_kaboom/",
"type": "git"
}
},
"generated_by": "David Christensen",
"meta-spec": {
"version": "1.0.0",
"url": "https://pgxn.org/meta/spec.txt"
},
"tags": [
"kaboom",
"crash",
"testing",
"failover"
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pg_kaboom

[![pg_kaboom logo](https://github.com/CrunchyData/pg_kaboom/raw/main/static/pg_kaboom_logo.png)](https://github.com/CrunchyData/pg_kaboom/)

[![pg_kaboom logo](https://github.com/pgguru/pg_kaboom/raw/main/static/pg_kaboom_logo.png)](https://github.com/pgguru/pg_kaboom/)
[![PGXN version](https://badge.fury.io/pg/pg_kaboom.svg)](https://badge.fury.io/pg/pg_kaboom)

> Where's the kaboom?! There's supposed to be an Earth-shattering kaboom!
Expand Down

0 comments on commit e12a283

Please sign in to comment.