Skip to content

Commit 742102f

Browse files
committed
Enable GitHub actions
1 parent 2c78413 commit 742102f

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
# This should disable running the workflow on tags, according to the
6+
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
7+
branches:
8+
- "*"
9+
pull_request:
10+
11+
concurrency:
12+
# Cancel older requests of the same workflow in the same branch.
13+
group: ${{ github.workflow }}-${{ github.ref_name }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
tests:
18+
runs-on: ubuntu-latest
19+
container:
20+
image: debian/trixie # OpenSSL >= 3.2
21+
22+
defaults:
23+
run:
24+
shell: sh
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
pg:
30+
- 19
31+
- 18
32+
- 17
33+
- 16
34+
- 15
35+
- 14
36+
- 13
37+
38+
env:
39+
PGVERSION: ${{ matrix.pgversion }}
40+
41+
steps:
42+
- name: checkout
43+
uses: actions/checkout@v3
44+
45+
- name: install pg
46+
run: |
47+
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
48+
sudo -u postgres createuser -s "$USER"
49+
sudo apt-get install -y build-essential libscrypt-dev libargon2-dev libssl-dev
50+
51+
- name: build
52+
run: |
53+
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"
54+
sudo -E make install
55+
56+
- name: test
57+
run: |
58+
make installcheck
59+
60+
- name: show regression diffs
61+
if: ${{ failure() }}
62+
run: |
63+
cat regression.diffs

0 commit comments

Comments
 (0)