-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (35 loc) · 1.9 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
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
env:
LANG: en_US.UTF-8
steps:
- name: Start PostgreSQL ${{ matrix.pg }}
run: |-
pg-start ${{ matrix.pg }} postgresql-plperl-${{ matrix.pg }} libxml-parser-perl libarchive-zip-perl libarchive-extract-perl libaliased-perl libsoftware-license-perl libtap-parser-sourcehandler-pgtap-perl libtest-file-perl libtest-file-contents-perl libtest-harness-perl libtest-mockmodule-perl libtest-nowarnings-perl libtest-xml-perl libtest-xpath-perl libclass-isa-perl libdata-dump-perl libdata-validate-uri-perl libdbi-perl libdbix-connector-perl libemail-valid-perl libemail-mime-perl libemail-address-perl libencode-perl libexception-class-dbi-perl libhttp-body-perl libhttp-negotiate-perl libjson-xs-perl libmoose-perl libmoosex-singleton-perl libnamespace-autoclean-perl libplack-perl libplack-middleware-session-perl libplack-middleware-methodoverride-perl libsemver-perl libtemplate-declare-perl libtry-tiny-perl liburi-template-perl libplack-middleware-debug-perl libplack-middleware-reverseproxy-perl libtest-pod-perl libtest-pod-coverage-perl libtest-spelling-perl cpanminus
- uses: actions/checkout@v4
- name: Build PGXN Manager
run: |-
perl Build.PL
PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm -qn'
perl Build.PL --context test
cat eg/plperl.conf >> $(psql --no-psqlrc -U postgres -Atqc 'SHOW config_file')
pgxn install semver
pgxn install pgtap
pg_ctlcluster ${{ matrix.pg }} test restart
./Build db
- name: Test PGXN::Manager
env: { PGUSER: postgres }
run: ./Build test