mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] pin mysql release version in toolset (#4590)
This commit is contained in:
@@ -11,9 +11,9 @@ $ArgumentList = ("/install", "/quiet", "/norestart")
|
||||
Install-Binary -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentList
|
||||
|
||||
## Downloading mysql
|
||||
$MysqlMajorMinor = (Get-ToolsetContent).Mysql.version
|
||||
$MysqlFullVersion = ((Invoke-WebRequest -Uri https://dev.mysql.com/downloads/mysql/${MysqlMajorMinor}.html).Content | Select-String -Pattern "${MysqlMajorMinor}\.\d+").Matches.Value
|
||||
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorMinor}/mysql-${MysqlFullVersion}-winx64.zip"
|
||||
$MysqlMajorVersion = (Get-ToolsetContent).mysql.major_version
|
||||
$MysqlFullVersion = (Get-ToolsetContent).mysql.full_version
|
||||
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorVersion}/mysql-${MysqlFullVersion}-winx64.zip"
|
||||
|
||||
$MysqlArchPath = Start-DownloadWithRetry -Url $MysqlVersionUrl -Name "mysql.zip"
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ Describe "PostgreSQL" {
|
||||
|
||||
Describe "MySQL" {
|
||||
It "MySQL CLI" {
|
||||
$MysqlMajorMinor = (Get-ToolsetContent).Mysql.version
|
||||
mysql -V | Should -BeLike "*${MysqlMajorMinor}*"
|
||||
$MysqlMajorVersion = (Get-ToolsetContent).mysql.major_version
|
||||
mysql -V | Should -BeLike "*${MysqlMajorVersion}*"
|
||||
}
|
||||
}
|
||||
@@ -421,8 +421,9 @@
|
||||
"node": {
|
||||
"default": "16"
|
||||
},
|
||||
"Mysql": {
|
||||
"version": "5.7"
|
||||
"mysql": {
|
||||
"major_version": "5.7",
|
||||
"full_version": "5.7.35"
|
||||
},
|
||||
"mongodb": {
|
||||
"version": "5.0"
|
||||
|
||||
@@ -453,8 +453,9 @@
|
||||
"node": {
|
||||
"default": "16"
|
||||
},
|
||||
"Mysql": {
|
||||
"version": "5.7"
|
||||
"mysql": {
|
||||
"major_version": "5.7",
|
||||
"full_version": "5.7.35"
|
||||
},
|
||||
"mongodb": {
|
||||
"version": "5.0"
|
||||
|
||||
@@ -305,8 +305,9 @@
|
||||
"node": {
|
||||
"default": "16"
|
||||
},
|
||||
"Mysql": {
|
||||
"version": "8.0"
|
||||
"mysql": {
|
||||
"major_version": "8.0",
|
||||
"full_version": "8.0.26"
|
||||
},
|
||||
"mongodb": {
|
||||
"version": "5.0"
|
||||
|
||||
Reference in New Issue
Block a user