forked from pramsey/pgsql-http
-
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.
- Loading branch information
Showing
3 changed files
with
66 additions
and
12 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,54 @@ | ||
# GitHub Actions for PostGIS | ||
# | ||
# Paul Ramsey <pramsey at cleverelephant dot ca> | ||
|
||
name: "CI" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
linux: | ||
|
||
env: | ||
OS_VERSION: ubuntu-20.04 | ||
OS_PGNAME: focal-pgdg | ||
OS_PGVER: 13 | ||
|
||
name: "CI" | ||
strategy: | ||
matrix: | ||
ci: | ||
- { PG_VERSION: 10 } | ||
- { PG_VERSION: 11 } | ||
- { PG_VERSION: 12 } | ||
- { PG_VERSION: 13 } | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
|
||
- name: 'Check Out' | ||
uses: actions/checkout@v2 | ||
|
||
- name: 'Install' | ||
run: | | ||
export PG_VERSION=${{ matrix.ci.PG_VERSION }} | ||
sudo /etc/init.d/postgresql stop | ||
sudo apt-get -y --purge remove postgresql postgresql-common postgresql-$OS_PGVER postgresql-server-dev-$OS_PGVER postgresql-client-common postgresql-client-$OS_PGVER libpq-dev | ||
sudo apt-get -y autoremove | ||
sudo rm -rf /var/lib/postgresql | ||
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | ||
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ $OS_PGNAME main $PG_VERSION" | ||
sudo apt-get -y install libcurl4-gnutls-dev postgresql-$PG_VERSION postgresql-client-$PG_VERSION postgresql-server-dev-$PG_VERSION | ||
sudo cp ./ci/pg_hba.conf /etc/postgresql/$PG_VERSION/main/pg_hba.conf | ||
sudo /etc/init.d/postgresql stop | ||
sudo /etc/init.d/postgresql start | ||
- name: 'Build & Test' | ||
run: | | ||
export PATH=/usr/lib/postgresql/${{ matrix.ci.PG_VERSION }}/bin/:$PATH | ||
make | ||
sudo make install | ||
PGUSER=postgres PGPORT=5432 make installcheck || (cat regression.diffs && /bin/false) | ||
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
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