mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Add build matrix for Go and PG
This commit is contained in:
parent
c107f909a2
commit
c10c60cad5
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -12,12 +12,17 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go_version: [1.14, 1.15]
|
||||||
|
pg_version: [9.6, 10, 11, 12, 13]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ${{ matrix.go_version }}
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -25,7 +30,7 @@ jobs:
|
|||||||
- name: Setup database server for testing
|
- name: Setup database server for testing
|
||||||
run: ci/setup_test.bash
|
run: ci/setup_test.bash
|
||||||
env:
|
env:
|
||||||
PGVERSION: 12
|
PGVERSION: ${{ matrix.pg_version }}
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user