-
Notifications
You must be signed in to change notification settings - Fork 46
71 lines (56 loc) · 1.67 KB
/
spockbench.yml
File metadata and controls
71 lines (56 loc) · 1.67 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Regression Tests and Spockbench
run-name: Running Regression Tests and Spockbench
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
pull-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
pgver: [15, 16, 17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout spock
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Checkout spockbench
uses: actions/checkout@v4
with:
repository: pgedge/spockbench
token: ${{ secrets.READ_SPOCKBENCH_PAT }}
path: spockbench
ref: master
- name: Add permissions
run: |
sudo chmod -R a+w ${GITHUB_WORKSPACE}
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Set up docker compose
uses: docker/setup-compose-action@v1
with:
version: latest
- name: Build docker container
run: |
cd ${GITHUB_WORKSPACE}/
echo PG_VER=${{ matrix.pgver }} >> tests/pgedge.env
docker build \
--build-arg PGVER=${{ matrix.pgver }} \
-t spock -f tests/Dockerfile.el9 .
- name: Run regression tests
run: |
docker run -e PGVER=${{ matrix.pgver }} spock /home/pgedge/run-spock-regress.sh
- name: Start docker
run: |
cd ${GITHUB_WORKSPACE}/tests/
echo PG_VER=${{ matrix.pgver }} >> pgedge.env
docker compose up
- name: Check spockbench output
run: |
cd ${GITHUB_WORKSPACE}/tests
./check-outputs.sh