Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcicatt committed Dec 23, 2024
1 parent 65f5355 commit e2b8e12
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
image: mcr.microsoft.com/playwright/dotnet:v1.49.0-noble
options: --user 1001
env:
'TestSettings:TEST_USERNAME': ${{ secrets.PLAYWRIGHT_USERNAME }}
'TestSettings:TEST_PASSWORD': '${{ secrets.PLAYWRIGHT_PASSWORD }}'
'TestSettings:TEST_TOTP_SECRET': ${{ secrets.PLAYWRIGHT_TOTP_SECRET }}
'TestSettings:TEST_BASE_URL': ${{ secrets.PLAYWRIGHT_BASE_URL }}
'PLAYWRIGHT_USERNAME': ${{ secrets.PLAYWRIGHT_USERNAME }}
'PLAYWRIGHT_PASSWORD': '${{ secrets.PLAYWRIGHT_PASSWORD }}'
'PLAYWRIGHT_TOTP_SECRET': ${{ secrets.PLAYWRIGHT_TOTP_SECRET }}
'PLAYWRIGHT_BASE_URL': ${{ secrets.PLAYWRIGHT_BASE_URL }}
defaults:
run:
working-directory: ./Kiss.Bff.EndToEndTest
steps:
- name: Set test var
run: |
echo "PLAYWRIGHT_BASE_URL=${{ secrets.PLAYWRIGHT_BASE_URL }}" >> $GITHUB_ENV
- run: |
echo ${{ env.PLAYWRIGHT_BASE_URL }}
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
Expand All @@ -32,6 +37,11 @@ jobs:
- name: Run your tests
id: e2e
run: dotnet test
env:
'TestSettings:TEST_USERNAME': ${{ env.PLAYWRIGHT_USERNAME }}
'TestSettings:TEST_PASSWORD': '${{ env.PLAYWRIGHT_PASSWORD }}'
'TestSettings:TEST_TOTP_SECRET': ${{ env.PLAYWRIGHT_TOTP_SECRET }}
'TestSettings:TEST_BASE_URL': ${{ env.PLAYWRIGHT_BASE_URL }}
- name: Deploy to GitHub Pages
if: ${{ always() }}
uses: peaceiris/actions-gh-pages@v4
Expand Down

0 comments on commit e2b8e12

Please sign in to comment.