fix: atlas topbar layout showing incorrect padding (#187) #274
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: Atlas Visual Comparison Tests | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
playwright: | |
name: '🧪 Tests - ${{ matrix.project }} - Shard ${{ matrix.shardIndex }} of ${{ matrix.shardTotal }}' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/atlas | |
strategy: | |
fail-fast: false | |
matrix: | |
project: [chromium] | |
shardIndex: [1, 2, 3] | |
shardTotal: [3] | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: | | |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list | |
npx playwright install --with-deps chromium | |
- name: Run Atlas test project | |
run: npm run e2e | |
- name: Run visual comparison tests | |
run: npx playwright test --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | |
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | |
if: failure() | |
with: | |
name: playwright-report-${{ matrix.shardIndex }}_${{ matrix.shardTotal }} | |
path: ${{ github.workspace }}/packages/atlas/test-results | |
retention-days: 30 |