Skip to content

Milestone 0.6 release train #34

Milestone 0.6 release train

Milestone 0.6 release train #34

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
- 'tests/**'
pull_request:
branches: [ "*" ]
paths-ignore:
- '**.md'
- 'tests/**'
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
playwright:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
name: 'Playwright Tests'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Add .NET tools to PATH
run: echo "/github/home/.dotnet/tools" >> $GITHUB_PATH
- name: Install .NET HTTPS Development Certificate
run: |
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
- name: Build .NET Solution
run: dotnet build
- name: Install Playwright Browsers
run: pwsh e2e/SharpSite.E2E/bin/Debug/net9.0/playwright.ps1 install chromium --with-deps
- name: Pull Docker image for Database
run: docker pull postgres:17.2
- name: Run your tests
run: pwsh ./build-and-test.ps1
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
id: test-results
if: always()
- name: Upload badge to Azure Blob Storage
if: always() && (github.ref == 'refs/heads/main' || github.base_ref == 'refs/heads/main')
shell: pwsh
run: |
az storage blob upload --account-name $env:AZURE_STORAGE_ACCOUNT --account-key $env:AZURE_STORAGE_KEY --container-name $env:AZURE_STORAGE_CONTAINER --file badge.svg --name playwright-badge.svg
env:
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
AZURE_STORAGE_KEY: ${{ secrets.AZURE_STORAGE_KEY }}
AZURE_STORAGE_CONTAINER: ${{ secrets.AZURE_STORAGE_CONTAINER }}