fix: stale theme restoration in settings sync #479
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Live Matrix smoke | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '23 6 * * *' | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| jobs: | |
| smoke: | |
| name: Live Matrix login smoke | |
| runs-on: ubuntu-latest | |
| if: > | |
| github.event_name == 'workflow_dispatch' || | |
| github.event_name == 'schedule' || | |
| (github.event_name == 'pull_request' && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| contains(github.event.pull_request.labels.*.name, 'live-smoke')) | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Validate live smoke secrets | |
| env: | |
| LIVE_MATRIX_SERVER: ${{ secrets.LIVE_MATRIX_SERVER }} | |
| LIVE_MATRIX_USERNAME: ${{ secrets.LIVE_MATRIX_USERNAME }} | |
| LIVE_MATRIX_PASSWORD: ${{ secrets.LIVE_MATRIX_PASSWORD }} | |
| shell: bash | |
| run: | | |
| missing=0 | |
| for key in LIVE_MATRIX_SERVER LIVE_MATRIX_USERNAME LIVE_MATRIX_PASSWORD; do | |
| if [[ -z "${!key}" ]]; then | |
| echo "::error::Missing required secret: $key" | |
| missing=1 | |
| fi | |
| done | |
| if [[ "$missing" -ne 0 ]]; then | |
| exit 1 | |
| fi | |
| - name: Setup app | |
| uses: ./.github/actions/setup | |
| - name: Install Playwright browser | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Run live Matrix login smoke | |
| env: | |
| LIVE_MATRIX_SERVER: ${{ secrets.LIVE_MATRIX_SERVER }} | |
| LIVE_MATRIX_USERNAME: ${{ secrets.LIVE_MATRIX_USERNAME }} | |
| LIVE_MATRIX_PASSWORD: ${{ secrets.LIVE_MATRIX_PASSWORD }} | |
| LIVE_MATRIX_ROOM_ID: '!mxyMeeQ8S0qXUqcCkgBei4cnb4grSEwIaK1sQxzAvpM' | |
| LIVE_MATRIX_ROOM_NAME: Test | |
| PLAYWRIGHT_TRACE: off | |
| run: pnpm exec playwright test e2e/live/liveMatrix.spec.ts --project chromium --workers 1 | |
| - name: Upload Playwright report | |
| if: failure() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | |
| with: | |
| name: live-matrix-playwright-report | |
| path: playwright-report | |
| if-no-files-found: ignore |