mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
fix e2e tests
This commit is contained in:
parent
b86b190044
commit
4d5942db51
1 changed files with 9 additions and 5 deletions
14
.github/workflows/e2e-publishing.yml
vendored
14
.github/workflows/e2e-publishing.yml
vendored
|
@ -52,7 +52,7 @@ jobs:
|
|||
}
|
||||
|
||||
test-publishing-overwrite:
|
||||
name: Validate settings.xml is not overwritten if flag is false
|
||||
name: settings.xml is overwritten if flag is true
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -63,7 +63,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Create fake settings.xml
|
||||
run: |
|
||||
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
|
||||
$xmlDirectory = Join-Path $HOME ".m2"
|
||||
$xmlPath = Join-Path $xmlDirectory "settings.xml"
|
||||
New-Item -Path $xmlDirectory -ItemType Directory
|
||||
Set-Content -Path $xmlPath -Value "Fake_XML"
|
||||
- name: setup-java
|
||||
uses: ./
|
||||
|
@ -86,7 +88,7 @@ jobs:
|
|||
}
|
||||
|
||||
test-publishing-skip-overwrite:
|
||||
name: Validate settings.xml is not overwritten if flag is false
|
||||
name: settings.xml is not overwritten if flag is false
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -97,7 +99,9 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Create fake settings.xml
|
||||
run: |
|
||||
$xmlPath = Join-Path $HOME ".m2" "settings.xml"
|
||||
$xmlDirectory = Join-Path $HOME ".m2"
|
||||
$xmlPath = Join-Path $xmlDirectory "settings.xml"
|
||||
New-Item -Path $xmlDirectory -ItemType Directory
|
||||
Set-Content -Path $xmlPath -Value "Fake_XML"
|
||||
- name: setup-java
|
||||
uses: ./
|
||||
|
@ -119,7 +123,7 @@ jobs:
|
|||
}
|
||||
|
||||
test-publishing-custom-location:
|
||||
name: Validate settings.xml in custom location
|
||||
name: settings.xml in custom location
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue