-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (40 loc) · 1.43 KB
/
AtlasVisualComparisonTest.yml
File metadata and controls
41 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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-22.04
defaults:
run:
working-directory: ./packages/atlas
strategy:
fail-fast: false
matrix:
project: [chromium]
shardIndex: [1, 2, 3]
shardTotal: [3]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
if: failure()
with:
name: playwright-report-${{ matrix.shardIndex }}_${{ matrix.shardTotal }}
path: ${{ github.workspace }}/packages/atlas/test-results
retention-days: 30