Skip to content

Commit 0f4d37f

Browse files
author
Yury Frolov
committed
Add tests to workflow
1 parent 6abda01 commit 0f4d37f

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
regress:
11+
name: regress
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
os-version: ['jammy', 'noble']
17+
version: ['13', '14', '15', '16', '17']
18+
19+
steps:
20+
21+
- name: Check out code
22+
uses: actions/checkout@v5
23+
24+
- name: Run tests
25+
run: |
26+
make pg_version=${{ matrix.version }} codename=${{ matrix.os-version }} regress
27+

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ tgz:
7373
git archive --prefix=$(DISTNAME)/ HEAD | gzip -9 > $(DISTNAME).tar.gz
7474

7575
pg_version?=16
76+
codename?=jammy
7677
regress:
77-
docker build . --tag pg_hash:1.0 --build-arg POSTGRES_VERSION=$(pg_version) && docker run pg_hash:1.0 | tee logs.out
78+
docker build . --tag pg_hash:1.0 --build-arg POSTGRES_VERSION=$(pg_version) --build-arg codename=$(codename) && docker run pg_hash:1.0 | tee logs.out
7879

0 commit comments

Comments
 (0)