Skip to content

Component examples

Component examples #14

Workflow file for this run

name: Playwright CI
on:
push:
branches:
- main
- master
pull_request:
workflow_dispatch:
repository_dispatch:
types: [workspace_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
env:
BASE_URL: ${{ vars.BASE_URL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: npm test
- name: Setup Testspace client
if: always()
uses: testspace-com/setup-testspace@v1
with:
domain: samples.stridespace.com
- name: Publish results to Testspace
if: always()
run: testspace test-results/junit/results.xml
- name: Upload JUnit report
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-report
path: test-results/junit/results.xml
if-no-files-found: ignore
- name: Upload HTML report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-html-report
path: playwright-report/
if-no-files-found: ignore