PG-571: Update Jobs to run on PR and Push. (#374)
parent
4352d97af0
commit
837bacdf3a
|
@ -1,5 +1,5 @@
|
||||||
name: code-coverage-test
|
name: code-coverage-test
|
||||||
on: ["push", "pull_request"]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -10,7 +10,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'postgres/postgres'
|
repository: 'postgres/postgres'
|
||||||
ref: 'REL_14_STABLE'
|
ref: 'REL_15_STABLE'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -45,11 +45,11 @@ jobs:
|
||||||
'--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--with-perl' \
|
'--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--with-perl' \
|
||||||
'--with-python' '--with-pam' '--with-openssl' '--with-libxml' \
|
'--with-python' '--with-pam' '--with-openssl' '--with-libxml' \
|
||||||
'--with-libxslt' 'PYTHON=/usr/bin/python3' '--enable-nls' \
|
'--with-libxslt' 'PYTHON=/usr/bin/python3' '--enable-nls' \
|
||||||
'--mandir=/usr/share/postgresql/14/man' '--enable-thread-safety' \
|
'--mandir=/usr/share/postgresql/15/man' '--enable-thread-safety' \
|
||||||
'--docdir=/usr/share/doc/postgresql-doc-14' '--enable-dtrace' \
|
'--docdir=/usr/share/doc/postgresql-doc-15' '--enable-dtrace' \
|
||||||
'--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share' \
|
'--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share' \
|
||||||
'--datadir=/usr/share/postgresql/14' '--with-uuid=e2fs' \
|
'--datadir=/usr/share/postgresql/15' '--with-uuid=e2fs' \
|
||||||
'--bindir=/usr/lib/postgresql/14/bin' '--with-gnu-ld' \
|
'--bindir=/usr/lib/postgresql/15/bin' '--with-gnu-ld' \
|
||||||
'--libdir=/usr/lib/x86_64-linux-gnu' '--enable-tap-tests' \
|
'--libdir=/usr/lib/x86_64-linux-gnu' '--enable-tap-tests' \
|
||||||
'--libexecdir=/usr/lib/postgresql' '--enable-debug' \
|
'--libexecdir=/usr/lib/postgresql' '--enable-debug' \
|
||||||
'--includedir=/usr/include/postgresql' '--disable-rpath' \
|
'--includedir=/usr/include/postgresql' '--disable-rpath' \
|
||||||
|
@ -68,8 +68,8 @@ jobs:
|
||||||
|
|
||||||
- name: Start postgresql cluster
|
- name: Start postgresql cluster
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/lib/postgresql/14/bin:$PATH"
|
export PATH="/usr/lib/postgresql/15/bin:$PATH"
|
||||||
sudo cp /usr/lib/postgresql/14/bin/pg_config /usr/bin
|
sudo cp /usr/lib/postgresql/15/bin/pg_config /usr/bin
|
||||||
initdb -D /opt/pgsql/data
|
initdb -D /opt/pgsql/data
|
||||||
pg_ctl -D /opt/pgsql/data -l logfile start
|
pg_ctl -D /opt/pgsql/data -l logfile start
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ jobs:
|
||||||
|
|
||||||
- name: Load pg_stat_monitor library and Restart Server
|
- name: Load pg_stat_monitor library and Restart Server
|
||||||
run: |
|
run: |
|
||||||
export PATH="/usr/lib/postgresql/14/bin:$PATH"
|
export PATH="/usr/lib/postgresql/15/bin:$PATH"
|
||||||
pg_ctl -D /opt/pgsql/data -l logfile stop
|
pg_ctl -D /opt/pgsql/data -l logfile stop
|
||||||
echo "shared_preload_libraries = 'pg_stat_monitor'" \
|
echo "shared_preload_libraries = 'pg_stat_monitor'" \
|
||||||
>> /opt/pgsql/data/postgresql.conf
|
>> /opt/pgsql/data/postgresql.conf
|
||||||
|
@ -96,7 +96,7 @@ jobs:
|
||||||
- name: Start pg_stat_monitor_tests & Run code coverage
|
- name: Start pg_stat_monitor_tests & Run code coverage
|
||||||
run: |
|
run: |
|
||||||
make installcheck
|
make installcheck
|
||||||
/usr/lib/postgresql/14/bin/psql -d postgres -p 5432 -c "\list"
|
/usr/lib/postgresql/15/bin/psql -d postgres -p 5432 -c "\list"
|
||||||
gcov -abcfu pg_stat_monitor.c
|
gcov -abcfu pg_stat_monitor.c
|
||||||
gcov -abcfu guc.c
|
gcov -abcfu guc.c
|
||||||
gcov -abcfu hash_query.c
|
gcov -abcfu hash_query.c
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-11-pgdg-package
|
name: postgresql-11-pgdg-package
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-11-pmm-integration
|
name: postgresql-11-pmm-integration
|
||||||
on: push
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-12-pgdg-package
|
name: postgresql-12-pgdg-package
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-12-pmm-integration
|
name: postgresql-12-pmm-integration
|
||||||
on: push
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-13-pgdg-package
|
name: postgresql-13-pgdg-package
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-13-pmm-integration
|
name: postgresql-13-pmm-integration
|
||||||
on: push
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-14-build
|
name: postgresql-14-build
|
||||||
on: ["push", "pull_request"]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-14-pgdg-package
|
name: postgresql-14-pgdg-package
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-14-pmm-integration
|
name: postgresql-14-pmm-integration
|
||||||
on: push
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-15-build
|
name: postgresql-15-build
|
||||||
on: ["push", "pull_request"]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-15-pgdg-package
|
name: postgresql-15-pgdg-package
|
||||||
on: [push]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: postgresql-15-pmm-integration
|
name: postgresql-15-pmm-integration
|
||||||
on: push
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue