Skip to content

Commit

Permalink
Merge branch 'browserstack' of https://github.com/Accenture/Ocaramba
Browse files Browse the repository at this point in the history
…into browserstack
  • Loading branch information
jraczek-acc committed Dec 2, 2024
2 parents 4172182 + 471d4df commit f20c220
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
ls
ls
export ASPNETCORE_ENVIRONMENT=Linux
echo $ASPNETCORE_ENVIRONMENT
sed -i '/Documentation/,+5 d' ./Ocaramba.sln
Expand All @@ -180,11 +180,10 @@ jobs:
env:
MAPPED_ENV_BROWSERSTACKKEY: ${{ secrets.BROWSERSTACKKEY }}
MAPPED_ENV_BROWSERSTACKUSER: ${{ secrets.BROWSERSTACKUSER }}
MAPPED_ENV_TESTINGBOTKEY: ${{ env.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ env.testingbotsecret }}
MAPPED_ENV_TESTINGBOTKEY: ${{ secrets.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ secrets.testingbotsecret }}
MAPPED_ENV_SAUCELABSACCESSKEY: ${{ secrets.saucelabsaccessKey }}
MAPPED_ENV_SAUCELABSUSERNAME: ${{ secrets.saucelabsusername }}
- name: Publish Test Results
run: ./ExecutingTestsOnLinuxBrowserStackGithubActions.ps1
- name: 'Start BrowserStackLocal Tunnel'
uses: 'browserstack/github-actions/setup-local@master'
Expand Down Expand Up @@ -219,7 +218,7 @@ jobs:
if: always()
with:
files: ${{ env.TestResultsDirWindows }}\*.trx
check_name: ExecutingTestsOnWindowsGithubActions1
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
- uses: actions/upload-artifact@v4
Expand All @@ -240,7 +239,7 @@ jobs:
with:
name: OcarambaBuild
- run: Expand-Archive -Path OcarambaBuild.zip -DestinationPath ./
- run: ./ExecutingTestsOnWindowsGithubActions2.ps1
- run: ./ExecutingTestsOnWindowsGithubActionsCore2.ps1
- run: Get-ChildItem .\ -Recurse
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
Expand Down Expand Up @@ -268,7 +267,7 @@ jobs:
if: always()
with:
files: ${{ env.TestResultsDirWindows }}\*.xml
check_name: ExecutingTestsOnWindowsGithubActions3
check_name: ExecutingTestsOnWindowsGithubActionsNet3
test_Stage_RunTestsOnWindowsBrowserStack:
runs-on: windows-latest
needs:
Expand All @@ -286,17 +285,16 @@ jobs:
env:
MAPPED_ENV_BROWSERSTACKKEY: ${{ secrets.BROWSERSTACKKEY }}
MAPPED_ENV_BROWSERSTACKUSER: ${{ secrets.BROWSERSTACKUSER }}
MAPPED_ENV_TESTINGBOTKEY: ${{ env.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ env.testingbotsecret }}
MAPPED_ENV_TESTINGBOTKEY: ${{ secrets.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ secrets.testingbotsecret }}
MAPPED_ENV_SAUCELABSACCESSKEY: ${{ secrets.saucelabsaccessKey }}
MAPPED_ENV_SAUCELABSUSERNAME: ${{ secrets.saucelabsusername }}
- name: Publish Test Results
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: always()
with:
files: ${{ env.TestResultsDirWindows }}\*.xml
check_name: ExecutingTestsOnWindowsGithubActions4
check_name: ExecutingTestsOnWindowsGithubActionsBrowserStack4
test_Stage_RunTestsSeleniumGrid:
runs-on: windows-latest
needs:
Expand All @@ -317,7 +315,7 @@ jobs:
with:
files: |
${{ env.TestResultsDirWindows }}\*.xml
check_name: ExecutingTestsOnWindowsGithubActions5
check_name: ExecutingTestsOnWindowsGithubActionsSeleniumGrid5
test_Stage_RunTestsOnWindowsSaucelabs:
runs-on: windows-latest
needs:
Expand All @@ -333,10 +331,10 @@ jobs:
- run: Expand-Archive -Path OcarambaBuild.zip -DestinationPath ./
- run: ./ExecutingTestsOnWindowsGithubActions6.ps1
env:
MAPPED_ENV_BROWSERSTACKKEY: ${{ env.browserstackkey }}
MAPPED_ENV_BROWSERSTACKUSER: ${{ env.browserstackuser }}
MAPPED_ENV_TESTINGBOTKEY: ${{ env.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ env.testingbotsecret }}
MAPPED_ENV_BROWSERSTACKKEY: ${{ secrets.BROWSERSTACKKEY }}
MAPPED_ENV_BROWSERSTACKUSER: ${{ secrets.BROWSERSTACKUSER }}
MAPPED_ENV_TESTINGBOTKEY: ${{ secrets.testingbotkey }}
MAPPED_ENV_TESTINGBOTSECRET: ${{ secrets.testingbotsecret }}
MAPPED_ENV_SAUCELABSACCESSKEY: ${{ secrets.saucelabsaccessKey }}
MAPPED_ENV_SAUCELABSUSERNAME: ${{ secrets.saucelabsusername }}
- name: Publish Test Results
Expand All @@ -345,7 +343,7 @@ jobs:
with:
files: |
${{ env.TestResultsDirWindows }}\*.xml
check_name: ExecutingTestsOnWindowsGithubActions6
check_name: ExecutingTestsOnWindowsGithubActionsSaucelabs6
release_Stage_PublishNuget:
runs-on: windows-latest
needs:
Expand Down

0 comments on commit f20c220

Please sign in to comment.