-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (40 loc) · 1.43 KB
/
AtlasVisualComparisonTest.yml
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-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