fix e2e tests

This commit is contained in:
Maxim Lobanov 2021-03-16 12:32:56 +03:00
parent b86b190044
commit 4d5942db51

View file

@ -52,7 +52,7 @@ jobs:
} }
test-publishing-overwrite: 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 }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -63,7 +63,9 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Create fake settings.xml - name: Create fake settings.xml
run: | 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" Set-Content -Path $xmlPath -Value "Fake_XML"
- name: setup-java - name: setup-java
uses: ./ uses: ./
@ -86,7 +88,7 @@ jobs:
} }
test-publishing-skip-overwrite: 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 }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
@ -97,7 +99,9 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Create fake settings.xml - name: Create fake settings.xml
run: | 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" Set-Content -Path $xmlPath -Value "Fake_XML"
- name: setup-java - name: setup-java
uses: ./ uses: ./
@ -119,7 +123,7 @@ jobs:
} }
test-publishing-custom-location: test-publishing-custom-location:
name: Validate settings.xml in custom location name: settings.xml in custom location
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false