Skip to content

[article] Create a lit cheat sheet #4383

[article] Create a lit cheat sheet

[article] Create a lit cheat sheet #4383

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