mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
fix e2e tests
This commit is contained in:
parent
b091e7652f
commit
242eb73434
2 changed files with 15 additions and 3 deletions
6
.github/workflows/e2e-publishing.yml
vendored
6
.github/workflows/e2e-publishing.yml
vendored
|
@ -82,8 +82,8 @@ jobs:
|
|||
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
|
||||
Get-Content $xmlPath | ForEach-Object { Write-Host $_ }
|
||||
|
||||
$xml = Get-Content $xmlPath -Raw
|
||||
if ($raw -notlike '*maven*') {
|
||||
$content = Get-Content $xmlPath -Raw
|
||||
if ($content -notlike '*maven*') {
|
||||
throw "settings.xml file is not overwritten"
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ jobs:
|
|||
$content = Get-Content -Path $xmlPath -Raw
|
||||
Write-Host $content
|
||||
|
||||
if ($content -ne "Fake_XML") {
|
||||
if ($content -notlike "*Fake_XML*") {
|
||||
throw "settings.xml file was overwritten but it should not be"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue