-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.14 KB
/
test.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
36
37
38
39
40
41
42
43
44
45
46
name: Build and Test
on:
push:
branches:
- master
jobs:
test:
strategy:
fail-fast: false
matrix:
tag: [10-bullseye, 11-bullseye, 12-bullseye, 13-bullseye, 14-bullseye, 15-bullseye, 16-bullseye]
runs-on: ubuntu-latest
container:
image: postgres:${{ matrix.tag }}
env:
POSTGRES_PASSWORD: something
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Install dependencies
run: apt-get update && apt-get install -y gcc make postgresql-server-dev-${PG_MAJOR} libicu-dev
- name: Build pg_icu_parser
run: make && make install
- name: Start database
run: /usr/local/bin/docker-entrypoint.sh postgres &
- name: Wait for database up
run: until pg_isready --username=postgres; do sleep 1; done
- name: Run regression tests
run: make installcheck REGRESS_OPTS="--user postgres"
- name: Save regression results
if: failure()
uses: actions/upload-artifact@v3
with:
name: regression-${{ matrix.tag }}
path: |
regression.*
results/