PG-571: Update Jobs to run on PR and Push. (#374)

pull/378/head
Naeem Akhter 2023-02-09 00:35:51 +05:00 committed by GitHub
parent 4352d97af0
commit 837bacdf3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 22 deletions

View File

@ -1,5 +1,5 @@
name: code-coverage-test
on: ["push", "pull_request"]
on: [pull_request]
jobs:
build:
@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: 'postgres/postgres'
ref: 'REL_14_STABLE'
ref: 'REL_15_STABLE'
- name: Install dependencies
run: |
@ -45,11 +45,11 @@ jobs:
'--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--with-perl' \
'--with-python' '--with-pam' '--with-openssl' '--with-libxml' \
'--with-libxslt' 'PYTHON=/usr/bin/python3' '--enable-nls' \
'--mandir=/usr/share/postgresql/14/man' '--enable-thread-safety' \
'--docdir=/usr/share/doc/postgresql-doc-14' '--enable-dtrace' \
'--mandir=/usr/share/postgresql/15/man' '--enable-thread-safety' \
'--docdir=/usr/share/doc/postgresql-doc-15' '--enable-dtrace' \
'--sysconfdir=/etc/postgresql-common' '--datarootdir=/usr/share' \
'--datadir=/usr/share/postgresql/14' '--with-uuid=e2fs' \
'--bindir=/usr/lib/postgresql/14/bin' '--with-gnu-ld' \
'--datadir=/usr/share/postgresql/15' '--with-uuid=e2fs' \
'--bindir=/usr/lib/postgresql/15/bin' '--with-gnu-ld' \
'--libdir=/usr/lib/x86_64-linux-gnu' '--enable-tap-tests' \
'--libexecdir=/usr/lib/postgresql' '--enable-debug' \
'--includedir=/usr/include/postgresql' '--disable-rpath' \
@ -68,8 +68,8 @@ jobs:
- name: Start postgresql cluster
run: |
export PATH="/usr/lib/postgresql/14/bin:$PATH"
sudo cp /usr/lib/postgresql/14/bin/pg_config /usr/bin
export PATH="/usr/lib/postgresql/15/bin:$PATH"
sudo cp /usr/lib/postgresql/15/bin/pg_config /usr/bin
initdb -D /opt/pgsql/data
pg_ctl -D /opt/pgsql/data -l logfile start
@ -86,7 +86,7 @@ jobs:
- name: Load pg_stat_monitor library and Restart Server
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
echo "shared_preload_libraries = 'pg_stat_monitor'" \
>> /opt/pgsql/data/postgresql.conf
@ -96,7 +96,7 @@ jobs:
- name: Start pg_stat_monitor_tests & Run code coverage
run: |
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 guc.c
gcov -abcfu hash_query.c

View File

@ -1,5 +1,5 @@
name: postgresql-11-pgdg-package
on: [push]
on: [pull_request]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-11-pmm-integration
on: push
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-12-pgdg-package
on: [push]
on: [pull_request]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-12-pmm-integration
on: push
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-13-pgdg-package
on: [push]
on: [pull_request]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-13-pmm-integration
on: push
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-14-build
on: ["push", "pull_request"]
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-14-pgdg-package
on: [push]
on: [pull_request]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-14-pmm-integration
on: push
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-15-build
on: ["push", "pull_request"]
on: [push]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-15-pgdg-package
on: [push]
on: [pull_request]
jobs:
build:

View File

@ -1,5 +1,5 @@
name: postgresql-15-pmm-integration
on: push
on: [push]
jobs:
build: