EventIndexer: ensure we add initial checkpoints when the db is first opened #4242
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: Shared Component Visual Tests | |
| on: | |
| pull_request: {} | |
| merge_group: | |
| types: [checks_requested] | |
| push: | |
| branches: [develop, master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| permissions: {} # No permissions required | |
| jobs: | |
| testStorybook: | |
| name: "Run Visual Tests" | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| actions: read | |
| issues: read | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 | |
| with: | |
| persist-credentials: false | |
| repository: element-hq/element-web | |
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| cache: "yarn" | |
| node-version: "lts/*" | |
| - name: Install element web dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Install dependencies | |
| working-directory: packages/shared-components | |
| run: yarn install --frozen-lockfile | |
| - name: Get installed Playwright version | |
| working-directory: packages/shared-components | |
| id: playwright | |
| run: echo "version=$(yarn list --pattern @playwright/test --depth=0 --json --non-interactive --no-progress | jq -r '.data.trees[].name')" >> $GITHUB_OUTPUT | |
| - name: Cache playwright binaries | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-${{ runner.arch }}-playwright-${{ steps.playwright.outputs.version }}-onlyshell | |
| - name: Install Playwright browsers | |
| working-directory: packages/shared-components | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: "yarn playwright install --with-deps --only-shell" | |
| - name: Run Visual tests | |
| run: "yarn --cwd packages/shared-components test:storybook:ci" | |
| - name: Upload received images & diffs | |
| if: always() | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 | |
| with: | |
| name: received-images | |
| path: packages/shared-components/playwright/shared-component-received |