-
Notifications
You must be signed in to change notification settings - Fork 57
28 lines (27 loc) · 895 Bytes
/
run-tests.yaml
File metadata and controls
28 lines (27 loc) · 895 Bytes
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
name: run_tests
on:
push:
branches:
- main
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- base_image: "golang:1.20.14-alpine3.19"
pg_package: "postgresql14"
- base_image: "golang:1.20.14-alpine3.19"
pg_package: "postgresql15"
- base_image: "golang:1.20.14-alpine3.19"
pg_package: "postgresql16"
- base_image: "golang:1.22.10-alpine3.21"
pg_package: "postgresql17"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t pg-schema-diff-test-runner -f ./build/Dockerfile.test --build-arg BASE_IMAGE=${{ matrix.base_image }} --build-arg POSTGRES_PACKAGE=${{ matrix.pg_package }} .
- name: Run tests
run: docker run pg-schema-diff-test-runner