Skip to content

Commit d972fc3

Browse files
Update Postgres versions (#14)
* Add V13 Postgres and upgrade other older versions. * Add V13 Postgres and upgrade other older versions. Co-authored-by: Fergus Strange <fergus@sitehive.co>
1 parent 73cda76 commit d972fc3

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Embedded Postgres
22
on:
33
push:
4-
branches: ["master"]
4+
branches: [ "master" ]
55
pull_request:
6-
branches: ["*"]
6+
branches: [ "*" ]
77
jobs:
88
tests:
99
name: Tests
@@ -33,10 +33,10 @@ jobs:
3333
fi
3434
popd
3535
done;
36-
# - name: Nancy Vulnerability
37-
# uses: sonatype-nexus-community/nancy-github-action@master
38-
# with:
39-
# target: go.sum
36+
# - name: Nancy Vulnerability
37+
# uses: sonatype-nexus-community/nancy-github-action@master
38+
# with:
39+
# target: go.sum
4040
- name: GolangCI Lint
4141
run: |
4242
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
@@ -56,7 +56,7 @@ jobs:
5656
name: Platform tests
5757
strategy:
5858
matrix:
59-
os: [ubuntu-latest, windows-latest, macos-latest]
59+
os: [ ubuntu-latest, windows-latest, macos-latest ]
6060
runs-on: ${{ matrix.os }}
6161
steps:
6262
- name: Checkout

config.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ type PostgresVersion string
8686

8787
// Predefined supported Postgres versions.
8888
const (
89-
V12 = PostgresVersion("12.1.0")
90-
V11 = PostgresVersion("11.6.0")
91-
V10 = PostgresVersion("10.11.0")
92-
V9 = PostgresVersion("9.6.16")
89+
V13 = PostgresVersion("13.1.0")
90+
V12 = PostgresVersion("12.1.0-1")
91+
V11 = PostgresVersion("11.6.0-1")
92+
V10 = PostgresVersion("10.11.0-1")
93+
V9 = PostgresVersion("9.6.16-1")
9394
)

platform-test/platform_test.go

+9-2
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,23 @@ package platform_test
33
import (
44
"database/sql"
55
"fmt"
6-
"github.com/fergusstrange/embedded-postgres"
76
"io/ioutil"
87
"os"
98
"path/filepath"
109
"strconv"
1110
"testing"
11+
12+
"github.com/fergusstrange/embedded-postgres"
1213
)
1314

1415
func Test_AllMajorVersions(t *testing.T) {
15-
allVersions := []embeddedpostgres.PostgresVersion{embeddedpostgres.V12, embeddedpostgres.V11, embeddedpostgres.V10, embeddedpostgres.V9}
16+
allVersions := []embeddedpostgres.PostgresVersion{
17+
embeddedpostgres.V13,
18+
embeddedpostgres.V12,
19+
embeddedpostgres.V11,
20+
embeddedpostgres.V10,
21+
embeddedpostgres.V9,
22+
}
1623
tempExtractLocation, err := ioutil.TempDir("", "embedded_postgres_go_tests")
1724
if err != nil {
1825
t.Fatal(err)

0 commit comments

Comments
 (0)