-
Notifications
You must be signed in to change notification settings - Fork 185
44 lines (38 loc) · 1.45 KB
/
integration-tests.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
42
43
44
name: Integration tests
on: [push, pull_request]
jobs:
integration-tests:
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: google/wireit@setup-github-actions-caching/v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npx playwright install-deps
- id: test
run: npm run test:integration
# This step needs to come before the :update-golden-screenshots step
# below, since that will delete the output files.
- name: Upload screenshot-diffs.zip artifact
if: ${{ always() && steps.test.outcome == 'failure' }}
uses: actions/upload-artifact@v4
with:
name: screenshot-diffs
path: packages/lit-dev-tests/test-results/**/*.png
# Only exists if it was screenshot tests that failed. Other kinds of
# tests could also fail.
if-no-files-found: ignore
- if: ${{ always() && steps.test.outcome == 'failure' }}
run: npm run test:integration:update-golden-screenshots
- name: Upload screenshot-goldens.zip artifact
if: ${{ always() && steps.test.outcome == 'failure' }}
uses: actions/upload-artifact@v4
with:
name: screenshot-goldens
path: packages/lit-dev-tests/src/playwright/**/**.png
if-no-files-found: error