-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (55 loc) · 1.54 KB
/
tests.yml
File metadata and controls
66 lines (55 loc) · 1.54 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Tests
on:
push:
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
branches:
- "*"
pull_request:
concurrency:
# Cancel older requests of the same workflow in the same branch.
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
container:
image: debian:trixie # OpenSSL >= 3.2
defaults:
run:
shell: sh
strategy:
#fail-fast: false
matrix:
pgversion:
- 19
- 18
- 17
- 16
- 15
- 14
- 13
env:
PGVERSION: ${{ matrix.pgversion }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PostgreSQL
run: |
apt-get update
apt-get install -y build-essential libscrypt-dev libargon2-dev libssl-dev postgresql-common
echo y | /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
apt-get upgrade -y
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
su -c "createuser -s $USER" postgres
- name: Build
run: |
make PROFILE="-Werror -D_PWHASH_LIBSCRYPT_SUPPORT=1 -D_PWHASH_ARGON2_OSSL_SUPPORT=1 -D_PWHASH_CRYPT_SCRYPT_SUPPORT=1 -D_PWHASH_CRYPT_YESCRYPT_SUPPORT=1"
make install
- name: Test
run: |
make installcheck
- name: Show regression diffs
if: ${{ failure() }}
run: |
cat regression.diffs