Skip to content

Pc 686 e2e nieuws werkinstructies #308

Pc 686 e2e nieuws werkinstructies

Pc 686 e2e nieuws werkinstructies #308

Workflow file for this run

name: Playwright Tests
on:
schedule:
- cron: '0 23 * * *'
pull_request:
branches: [ main, master ]
paths: ['Kiss.Bff.EndToEndTest/**']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Kiss.Bff.EndToEndTest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- run: dotnet build
- name: Ensure browsers are installed
run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps
- name: Run your tests
id: e2e
run: dotnet test
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 }}
- name: Upload artifact
if: ${{ always() }}
uses: actions/upload-pages-artifact@v3
with:
# directory of your reports
path: './Kiss.Bff.EndToEndTest/bin/Debug/net8.0/playwright-traces'
deploy:
if: ${{ always() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
needs: test
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4