Skip to content

[WIP] yarn -> pnpm #217

[WIP] yarn -> pnpm

[WIP] yarn -> pnpm #217

# Components testing workflow - test ProtocolDeck
name: 'Components package testing'
on:
pull_request:
paths:
- 'components/**'
- 'components-testing/**'
- 'shared-data/**'
- '.github/workflows/components-testing.yaml'
push:
branches:
- 'edge'
- 'chore_release*'
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.ref_name != 'edge' || github.run_id}}-${{ github.ref_type != 'tag' || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
CI: 'true'
jobs:
components-testing:
name: 'components testing setup and validation'
timeout-minutes: 30
runs-on: 'ubuntu-24.04'
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- uses: ./.github/actions/js/setup
- uses: pnpm/action-setup@v4
with:
version: 9.0.0
- name: 'setup components-testing environment'
working-directory: components-testing
run: make setup
- name: 'install playwright browsers'
working-directory: components-testing
run: make test-setup
- name: 'run components-testing tests'
working-directory: components-testing
run: make test
- name: 'upload playwright report'
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
id: upload-report
with:
name: playwright-report
path: components-testing/playwright-report/
retention-days: 30
- name: 'add test results to summary'
if: ${{ !cancelled() }}
run: |
echo "## 🎭 Playwright Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ -d "components-testing/playwright-report" ]; then
echo "📊 **Test Report**: [Download HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.upload-report.outputs.artifact-id }})" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The detailed HTML report with screenshots and traces has been uploaded as an artifact." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
else
echo "❌ No test report generated" >> $GITHUB_STEP_SUMMARY
fi