feat:Show Stellar Fee Breakdown in Modal #45
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: Frontend Visual Regression | |
| on: | |
| pull_request: | |
| paths: | |
| - "frontend/**" | |
| - ".github/workflows/frontend-visual-regression.yml" | |
| workflow_dispatch: | |
| jobs: | |
| visual-regression: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache npm dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-${{ hashFiles('frontend/package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install Playwright browser | |
| run: npx playwright install --with-deps chromium | |
| - name: Run visual regression tests | |
| run: npm run test:visual:update | |
| - name: Commit updated baseline snapshots | |
| run: | | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git config user.name "github-actions[bot]" | |
| git add tests/e2e/vrt.spec.ts-snapshots/ | |
| git diff --staged --quiet && echo "Snapshots unchanged." || \ | |
| git commit -m "chore: update VRT baseline snapshots [skip ci]" | |
| - name: Push snapshot updates | |
| run: git push origin HEAD:${{ github.head_ref }} | |
| continue-on-error: true | |
| - name: Upload Playwright artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: frontend-visual-regression-artifacts | |
| path: | | |
| frontend/test-results | |
| frontend/playwright-report | |
| if-no-files-found: ignore |