Skip to content

Commit

Permalink
Merge pull request #917 from aziontech/dev
Browse files Browse the repository at this point in the history
Deploy to production 2024/07/29
  • Loading branch information
maxwelbm authored Jul 29, 2024
2 parents 5b8a3c2 + d1f81c6 commit 1e4e27a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pkg/vulcan/vulcan.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
)

const (
currentMajor = 2
currentMajor = 3
installEdgeFunctions = "npx --yes %s edge-functions%s %s"
firstTimeExecuting = "@v2.5.0"
firstTimeExecuting = "@v3.0.0"
)

var versionVulcan = "@latest"
Expand Down
14 changes: 7 additions & 7 deletions pkg/vulcan/vulcan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestCheckVulcanMajor(t *testing.T) {
{
name: "new major version without last version",
args: args{
currentVersion: "3.0.0",
currentVersion: "4.0.0",
},
lastVulcanVer: "",
expectedVersion: firstTimeExecuting,
Expand All @@ -114,19 +114,19 @@ func TestCheckVulcanMajor(t *testing.T) {
{
name: "new major version with last version",
args: args{
currentVersion: "3.0.0",
currentVersion: "4.0.0",
},
lastVulcanVer: "2.5.0",
expectedVersion: "@v2.5.0",
lastVulcanVer: "3.0.0",
expectedVersion: "@v3.0.0",
wantErr: false,
},
{
name: "same major version",
args: args{
currentVersion: "2.0.0",
currentVersion: "3.0.0",
},
lastVulcanVer: "2.5.0",
expectedVersion: "@v2.5.0",
lastVulcanVer: "3.0.0",
expectedVersion: "@v3.0.0",
wantErr: false,
},
{
Expand Down

0 comments on commit 1e4e27a

Please sign in to comment.