Skip to content

Commit 937676e

Browse files
committed
Enable GitHub actions
1 parent 2c78413 commit 937676e

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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: pgxn/pgxn-tools
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
pg:
24+
- 19
25+
- 18
26+
- 17
27+
- 16
28+
- 15
29+
- 14
30+
- 13
31+
steps:
32+
- name: Start PostgreSQL ${{ matrix.pg }}
33+
run: pg-start ${{ matrix.pg }}
34+
- name: Check out the repo
35+
uses: actions/checkout@v3
36+
- name: install build-dependencies
37+
run: apt-get update && apt-get install -y libscrypt-dev libargon2-dev libssl-dev
38+
- name: Test on PostgreSQL ${{ matrix.pg }}
39+
run: |
40+
PROFILE="-D_PWHASH_LIBSCRYPT_SUPPORT=1 -D_PWHASH_ARGON2_OSSL_SUPPORT=1 -D_PWHASH_CRYPT_SCRYPT_SUPPORT=1 -D_PWHASH_CRYPT_YESCRYPT_SUPPORT=1" \
41+
pg-build-test

0 commit comments

Comments
 (0)