Migrate mt data table reset filter button to custom i18n #1238
Workflow file for this run
This file contains 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: Visual tests | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/component-library/**" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
storybook-tests: | |
name: Storybook Tests | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
cache-dependency-path: "**/pnpm-lock.yaml" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Install Playwright dependencies | |
run: pnpm dlx playwright install-deps | |
- name: Install Playwright | |
run: pnpm dlx [email protected] install | |
- name: Build storybook | |
run: pnpx turbo run build:storybook --filter=@shopware-ag/meteor-component-library -- --test | |
- name: Run Tests | |
id: storybookTests | |
run: | | |
npx concurrently --kill-others --success first --names "SB,TEST" --hide "SB" --prefix-colors "magenta,blue" \ | |
"http-server ./packages/component-library/storybook-static -a 127.0.0.1 --port 6006" \ | |
"wait-on http://127.0.0.1:6006 && pnpx turbo run test:storybook --filter=@shopware-ag/meteor-component-library" | |
- name: Archive visual test diffs | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: visual-test-diffs | |
path: ./packages/component-library/__snapshots__ |