Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
uses: sonatype-nexus-community/nancy-github-action@main
with:
nancyVersion: v1.0.15
nancyCommand: sleuth --exclude-vulnerability=33316a47-aa6d-4d63-9b68-c7c97de1b02c
- name: GolangCI Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
Expand Down
10 changes: 5 additions & 5 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ type PostgresVersion string

// Predefined supported Postgres versions.
const (
V13 = PostgresVersion("13.2.0")
V12 = PostgresVersion("12.6.0")
V11 = PostgresVersion("11.11.0")
V10 = PostgresVersion("10.16.0")
V9 = PostgresVersion("9.6.21")
V13 = PostgresVersion("13.4.0")
V12 = PostgresVersion("12.8.0")
V11 = PostgresVersion("11.13.0")
V10 = PostgresVersion("10.18.0")
V9 = PostgresVersion("9.6.23")
)
2 changes: 1 addition & 1 deletion platform-test/platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Test_AllMajorVersions(t *testing.T) {
}

for testNumber, version := range allVersions {
t.Run(fmt.Sprintf("MajorVersion_%d", testNumber), func(t *testing.T) {
t.Run(fmt.Sprintf("MajorVersion_%s", version), func(t *testing.T) {
port := uint32(5555 + testNumber)
runtimePath := filepath.Join(tempExtractLocation, strconv.Itoa(testNumber))
database := embeddedpostgres.NewDatabase(embeddedpostgres.DefaultConfig().
Expand Down
8 changes: 4 additions & 4 deletions version_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) {

assert.Equal(t, expected[0], operatingSystem)
assert.Equal(t, expected[1], architecture)
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
assert.Equal(t, V12, postgresVersion)
})
}
}
Expand All @@ -92,7 +92,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v6", architecture)
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
assert.Equal(t, V12, postgresVersion)
}

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

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "arm32v7", architecture)
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
assert.Equal(t, V12, postgresVersion)
}

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

assert.Equal(t, "linux", operatingSystem)
assert.Equal(t, "amd64-alpine", architecture)
assert.Equal(t, PostgresVersion("12.6.0"), postgresVersion)
assert.Equal(t, V12, postgresVersion)
}

func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {
Expand Down