-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added docker hub * fixed path * fixed * fixed TestResults * fixed * rebuild * fix path * added build * fixed * fixed path * fixed build issue * fixed --------- Co-authored-by: Jakub Raczek <[email protected]>
- Loading branch information
1 parent
fd09b6f
commit 8b2bcc0
Showing
7 changed files
with
135 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,16 +87,6 @@ jobs: | |
with: | ||
path: ./OcarambaLite/bin/Release/OcarambaLite.${{ env.frameworkVersion }}.snupkg | ||
name: OcarambaLiteS${{ env.frameworkVersion }} | ||
- shell: cmd | ||
run: | | ||
7z a -mx9 -spf2 "OcarambaBuild.zip" ".\**\bin\**" -xr!*.nupkg -xr!*.snupkg | ||
7z a -mx9 -spf2 "OcarambaBuild.zip" ".\scripts\**" -xr!*.nupkg -xr!*.snupkg | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: OcarambaBuild.zip | ||
name: OcarambaBuild | ||
compression-level: 0 | ||
if: (${{ job.status }} != 'cancelled') | ||
test_Stage_RunTestsOnDocker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -214,40 +204,61 @@ jobs: | |
check_name: test_Stage_RunTestsOnLinuxBrowserStack | ||
test_Stage_RunTestsOnWindowsCore1: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- shell: powershell | ||
run: '(Get-Content ''Ocaramba.sln'' -raw) -replace [regex](''.*?'' + ''Documentation'' + (''.*?\r\n'' * (5 + 1))) | set-content ''Ocaramba.sln''' | ||
- name: Setup nuget | ||
uses: nuget/setup-nuget@v2 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: | | ||
7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions1.ps1 | ||
nuget-version: latest | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}\.nuget\packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: NuGet restore | ||
run: nuget restore ${{ env.solution }} | ||
- run: msbuild '${{ env.solution }}' /p:configuration='${{ env.buildConfiguration }}' /p:platform='${{ env.buildPlatform }}' /v:minimal | ||
- run: ./scripts/ExecutingTestsOnWindowsGithubActions1.ps1 | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | ||
if: always() | ||
with: | ||
files: ${{ env.TestResultsDirWindows }}\*.trx | ||
check_name: ExecutingTestsOnWindowsGithubActionsCore1 | ||
- name: Zip artifact | ||
run: Compress-Archive -Path D:\a\Ocaramba\Ocaramba\Ocaramba\Ocaramba.Tests.NUnitExtentReports\bin\Release\net8.0\TestOutput -Destination ExtentReports_${{ github.run_id }}.zip | ||
run: Compress-Archive -Path .\Ocaramba.Tests.NUnitExtentReports\bin\Release\net8.0\TestOutput -Destination ExtentReports_${{ github.run_id }}.zip | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ExtentReports_${{ github.run_id }}.zip | ||
name: ExtentTestReport | ||
if: always() | ||
test_Stage_RunTestsOnWindowsCore2: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- shell: powershell | ||
run: '(Get-Content ''Ocaramba.sln'' -raw) -replace [regex](''.*?'' + ''Documentation'' + (''.*?\r\n'' * (5 + 1))) | set-content ''Ocaramba.sln''' | ||
- name: Setup nuget | ||
uses: nuget/setup-nuget@v2 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: 7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions2.ps1 | ||
nuget-version: latest | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}\.nuget\packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: NuGet restore | ||
run: nuget restore ${{ env.solution }} | ||
- run: msbuild '${{ env.solution }}' /p:configuration='${{ env.buildConfiguration }}' /p:platform='${{ env.buildPlatform }}' /v:minimal | ||
- run: ./scripts/ExecutingTestsOnWindowsGithubActions2.ps1 | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | ||
if: always() | ||
|
@@ -257,15 +268,26 @@ jobs: | |
check_name: ExecutingTestsOnWindowsGithubActionsCore2 | ||
test_Stage_RunTestsOnWindowsFramework: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- shell: powershell | ||
run: '(Get-Content ''Ocaramba.sln'' -raw) -replace [regex](''.*?'' + ''Documentation'' + (''.*?\r\n'' * (5 + 1))) | set-content ''Ocaramba.sln''' | ||
- name: Setup nuget | ||
uses: nuget/setup-nuget@v2 | ||
with: | ||
nuget-version: latest | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: 7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions3.ps1 | ||
path: ${{ github.workspace }}\.nuget\packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: NuGet restore | ||
run: nuget restore ${{ env.solution }} | ||
- run: msbuild '${{ env.solution }}' /p:configuration='${{ env.buildConfiguration }}' /p:platform='${{ env.buildPlatform }}' /v:minimal | ||
- run: ./scripts/ExecutingTestsOnWindowsGithubActions3.ps1 | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | ||
if: false | ||
|
@@ -274,15 +296,26 @@ jobs: | |
check_name: ExecutingTestsOnWindowsGithubActionsNet3 | ||
test_Stage_RunTestsOnWindowsBrowserStack: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- shell: powershell | ||
run: '(Get-Content ''Ocaramba.sln'' -raw) -replace [regex](''.*?'' + ''Documentation'' + (''.*?\r\n'' * (5 + 1))) | set-content ''Ocaramba.sln''' | ||
- name: Setup nuget | ||
uses: nuget/setup-nuget@v2 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: 7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions4.ps1 | ||
nuget-version: latest | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}\.nuget\packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: NuGet restore | ||
run: nuget restore ${{ env.solution }} | ||
- run: msbuild '${{ env.solution }}' /p:configuration='${{ env.buildConfiguration }}' /p:platform='${{ env.buildPlatform }}' /v:minimal | ||
- run: ./scripts/ExecutingTestsOnWindowsGithubActions4.ps1 | ||
env: | ||
MAPPED_ENV_BROWSERSTACKKEY: ${{ secrets.BROWSERSTACKKEY }} | ||
MAPPED_ENV_BROWSERSTACKUSER: ${{ secrets.BROWSERSTACKUSER }} | ||
|
@@ -292,53 +325,50 @@ jobs: | |
MAPPED_ENV_SAUCELABSUSERNAME: ${{ secrets.saucelabsusername }} | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | ||
if: always() | ||
if: false | ||
with: | ||
files: ${{ env.TestResultsDirWindows }}\*.xml | ||
check_name: ExecutingTestsOnWindowsGithubActionsBrowserStack4 | ||
test_Stage_RunTestsSeleniumGrid: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: 7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version: '21' | ||
- shell: powershell | ||
run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions5.ps1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./console_hub.out | ||
name: hub | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./console_hub.err | ||
name: huberr | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
ls | ||
export ASPNETCORE_ENVIRONMENT=Linux | ||
echo $ASPNETCORE_ENVIRONMENT | ||
sed -i '/Documentation/,+5 d' ./Ocaramba.sln | ||
- run: dotnet build ./Ocaramba.sln --configuration ${{ env.buildConfiguration }} | ||
- shell: pwsh | ||
run: ./scripts/ExecutingTestsOnWindowsGithubActions5.ps1 | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action/windows@v2 | ||
uses: EnricoMi/publish-unit-test-result-action/linux@v2 | ||
if: false | ||
with: | ||
files: | | ||
${{ env.TestResultsDirWindows }}\*.xml | ||
check_name: ExecutingTestsOnWindowsGithubActionsSeleniumGrid5 | ||
/home/runner/work/**/TestResults/*.xml | ||
test_Stage_RunTestsOnWindowsSaucelabs: | ||
runs-on: windows-latest | ||
needs: | ||
- build_Stage_BuildTestsOnWindows | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/setup-msbuild@v2 | ||
- shell: powershell | ||
run: '(Get-Content ''Ocaramba.sln'' -raw) -replace [regex](''.*?'' + ''Documentation'' + (''.*?\r\n'' * (5 + 1))) | set-content ''Ocaramba.sln''' | ||
- name: Setup nuget | ||
uses: nuget/setup-nuget@v2 | ||
with: | ||
nuget-version: latest | ||
- name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
name: OcarambaBuild | ||
- shell: cmd | ||
run: 7z x "OcarambaBuild.zip" -o.\Ocaramba -y -bb0 | ||
- run: ./Ocaramba/ExecutingTestsOnWindowsGithubActions6.ps1 | ||
path: ${{ github.workspace }}\.nuget\packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} #hash of project files | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: NuGet restore | ||
run: nuget restore ${{ env.solution }} | ||
- run: dotnet build ./Ocaramba.sln --configuration ${{ env.buildConfiguration }} | ||
- run: ./scripts/ExecutingTestsOnWindowsGithubActions6.ps1 | ||
env: | ||
MAPPED_ENV_BROWSERSTACKKEY: ${{ secrets.BROWSERSTACKKEY }} | ||
MAPPED_ENV_BROWSERSTACKUSER: ${{ secrets.BROWSERSTACKUSER }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.