From c10c60cad5d4a336c46cfb324c7879185266f34b Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 30 Jan 2021 16:38:58 -0600 Subject: [PATCH] Add build matrix for Go and PG --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e3c1ed8..b37ca273 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,17 @@ jobs: name: Test runs-on: ubuntu-latest + strategy: + matrix: + go_version: [1.14, 1.15] + pg_version: [9.6, 10, 11, 12, 13] + steps: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.13 + go-version: ${{ matrix.go_version }} - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -25,7 +30,7 @@ jobs: - name: Setup database server for testing run: ci/setup_test.bash env: - PGVERSION: 12 + PGVERSION: ${{ matrix.pg_version }} - name: Test run: go test -v ./...