Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 19a27f3

Browse files
Upgrade postgres binaries to latest available versions (fergusstrange#36)
* Upgrade postgres binaries to latest available versions * Ignore low risk xz bug for now.
1 parent 50bcfea commit 19a27f3

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
uses: sonatype-nexus-community/nancy-github-action@main
3939
with:
4040
nancyVersion: v1.0.15
41+
nancyCommand: sleuth --exclude-vulnerability=33316a47-aa6d-4d63-9b68-c7c97de1b02c
4142
- name: GolangCI Lint
4243
run: |
4344
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0

config.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ type PostgresVersion string
107107

108108
// Predefined supported Postgres versions.
109109
const (
110-
V13 = PostgresVersion("13.2.0")
111-
V12 = PostgresVersion("12.6.0")
112-
V11 = PostgresVersion("11.11.0")
113-
V10 = PostgresVersion("10.16.0")
114-
V9 = PostgresVersion("9.6.21")
110+
V13 = PostgresVersion("13.4.0")
111+
V12 = PostgresVersion("12.8.0")
112+
V11 = PostgresVersion("11.13.0")
113+
V10 = PostgresVersion("10.18.0")
114+
V9 = PostgresVersion("9.6.23")
115115
)

platform-test/platform_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func Test_AllMajorVersions(t *testing.T) {
2727
}
2828

2929
for testNumber, version := range allVersions {
30-
t.Run(fmt.Sprintf("MajorVersion_%d", testNumber), func(t *testing.T) {
30+
t.Run(fmt.Sprintf("MajorVersion_%s", version), func(t *testing.T) {
3131
port := uint32(5555 + testNumber)
3232
runtimePath := filepath.Join(tempExtractLocation, strconv.Itoa(testNumber))
3333
database := embeddedpostgres.NewDatabase(embeddedpostgres.DefaultConfig().

version_strategy_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) {
7474

7575
assert.Equal(t, expected[0], operatingSystem)
7676
assert.Equal(t, expected[1], architecture)
77-
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
77+
assert.Equal(t, V12, postgresVersion)
7878
})
7979
}
8080
}
@@ -92,7 +92,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {
9292

9393
assert.Equal(t, "linux", operatingSystem)
9494
assert.Equal(t, "arm32v6", architecture)
95-
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
95+
assert.Equal(t, V12, postgresVersion)
9696
}
9797

9898
func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
@@ -108,7 +108,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
108108

109109
assert.Equal(t, "linux", operatingSystem)
110110
assert.Equal(t, "arm32v7", architecture)
111-
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
111+
assert.Equal(t, V12, postgresVersion)
112112
}
113113

114114
func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
@@ -126,7 +126,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
126126

127127
assert.Equal(t, "linux", operatingSystem)
128128
assert.Equal(t, "amd64-alpine", architecture)
129-
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
129+
assert.Equal(t, V12, postgresVersion)
130130
}
131131

132132
func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {

0 commit comments

Comments
 (0)