Skip to content

Commit

Permalink
fixing test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Antosiak committed Mar 12, 2024
1 parent 7829a22 commit beb1359
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
buildPlatform: Any CPU
buildConfiguration: Release
frameworkVersion: 4.0.0
TestResultsDirWindows: D:\a\Ocaramba\Ocaramba\TestResults
CHROMEWEBDRIVER: C:\SeleniumWebDrivers\ChromeDriver
BuildVersion: 4.0.0${{ github.run_number }}
ChromeDriverVersion: 122.0.6261.9400
Expand All @@ -23,7 +24,7 @@ jobs:
build_Stage_BuildTestsOnWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: microsoft/[email protected]
- shell: powershell
run: |
Expand Down Expand Up @@ -91,7 +92,7 @@ jobs:
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: docker buildx build -f Dockerfile -t ***/selenium:latest
if: false
- run: docker push -t Dockerfile
Expand All @@ -110,7 +111,7 @@ jobs:
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: find . -name '*.csproj' -exec sed -i -e 's/109.0.5414.7400/${{ env.ChromeDriverVersion }}/g' {} \;
- run: |
ls
Expand All @@ -137,7 +138,7 @@ jobs:
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
ls
Expand Down Expand Up @@ -168,7 +169,7 @@ jobs:
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -184,7 +185,7 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: .\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.netcoreapp.trx
files: ${{ env.TestResultsDirWindows }}\Ocaramba.Tests.netcoreapp.trx
- name: Zip artifact
run: Compress-Archive -Path D:\a\Ocaramba\Ocaramba\Ocaramba\Ocaramba.Tests.NUnitExtentReports\bin\Release\net6.0\TestOutput -Destination ExtentReports_${{ github.run_id }}.zip
- uses: actions/upload-artifact@v2
Expand All @@ -197,7 +198,7 @@ jobs:
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -214,14 +215,14 @@ jobs:
if: always()
with:
files: |
.\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.netcoreapp.xml
.\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.EdgeChrominum.xml
${{ env.TestResultsDirWindows }}\Ocaramba.Tests.netcoreapp.xml
${{ env.TestResultsDirWindows }}\Ocaramba.Tests.EdgeChrominum.xml
test_Stage_RunTestsOnWindowsFramework:
runs-on: windows-latest
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -236,13 +237,13 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: .\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.net4.xml
files: ${{ env.TestResultsDirWindows }}\Ocaramba.Tests.net4.xml
test_Stage_RunTestsOnWindowsBrowserStack:
runs-on: windows-latest
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -264,13 +265,13 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: .\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.BrowserStack.xml
files: ${{ env.TestResultsDirWindows }}\Ocaramba.Tests.BrowserStack.xml
test_Stage_RunTestsSeleniumGrid:
runs-on: windows-latest
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -286,14 +287,14 @@ jobs:
if: always()
with:
files: |
.\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.NUnitGrid.xml
.\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.CloudProviderCrossBrowserGrid.xml
${{ env.TestResultsDirWindows }}\Ocaramba.Tests.NUnitGrid.xml
${{ env.TestResultsDirWindows }}\Ocaramba.Tests.CloudProviderCrossBrowserGrid.xml
test_Stage_RunTestsOnWindowsSaucelabs:
runs-on: windows-latest
needs:
- build_Stage_BuildTestsOnWindows
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup VSTest Path
uses: darenm/[email protected]
- uses: nuget/setup-nuget@v2
Expand All @@ -316,7 +317,7 @@ jobs:
if: always()
with:
files: |
.\Ocaramba\Ocaramba\TestResults\Ocaramba.Tests.saucelabsnet472.xml
${{ env.TestResultsDirWindows }}\Ocaramba.Tests.saucelabsnet472.xml
release_Stage_PublishNuget:
runs-on: windows-latest
needs:
Expand All @@ -331,7 +332,7 @@ jobs:
- test_Stage_RunTestsSeleniumGrid
- test_Stage_RunTestsOnWindowsSaucelabs
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- shell: powershell
run: |
$tags = git tag --sort=-creatordate
Expand Down

0 comments on commit beb1359

Please sign in to comment.