Skip to content

[WIP] lit cheat sheet #4312

[WIP] lit cheat sheet

[WIP] lit cheat sheet #4312

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@v2
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@v2
with:
name: screenshot-goldens
path: packages/lit-dev-tests/src/playwright/**/**.png
if-no-files-found: error