Skip to content

Enable GitHub actions #4

Enable GitHub actions

Enable GitHub actions #4

Workflow file for this run

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:
pg:
- 19
- 18
- 17
- 16
- 15
- 14
- 13
env:
PGVERSION: ${{ matrix.pgversion }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: install pg
run: |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
sudo -u postgres createuser -s "$USER"
sudo apt-get install -y build-essential libscrypt-dev libargon2-dev libssl-dev
- 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"
sudo -E make install
- name: test
run: |
make installcheck
- name: show regression diffs
if: ${{ failure() }}
run: |
cat regression.diffs