Skip to content

build(deps): bump eslint-plugin-lit from 1.11.0 to 1.12.0 (#2060) #4188

build(deps): bump eslint-plugin-lit from 1.11.0 to 1.12.0 (#2060)

build(deps): bump eslint-plugin-lit from 1.11.0 to 1.12.0 (#2060) #4188

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Presubmit
on:
pull_request_target:
push:
branches: [main]
workflow_dispatch:
# Needed for pushing baselines commit.
permissions:
contents: write
jobs:
presubmit:
runs-on: ubuntu-22.04
env:
Editable: github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v4.1.5
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
- uses: actions/checkout@v4.1.5
if: github.event_name == 'pull_request_target'
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Use Node.js 16
uses: actions/setup-node@v4.0.2
with:
node-version: '16'
# 8.6 has the lastest overrides support
check-latest: true
- name: Install Japanese Fonts
run: |
sudo apt-get update
sudo apt-get install fonts-noto-cjk
- run: npm ci
- name: Lint, build, and test
id: run-tests
run: npm run presubmit:coverage
- name: Check for screenshot failures
id: check-screenshots
if: failure()
run: echo "screenshot_failure=$(ls -1 screenshots/Chromium/failed | wc -l)" >> $GITHUB_OUTPUT
- name: Upload failing screenshots and diffs
uses: actions/upload-artifact@v4
if: failure() && steps.check-screenshots.outputs.screenshot_failure > 0
with:
name: screenshot_failures
path: screenshots/Chromium/failed/
- name: Update baseline screenshots
run: npm run test:update-baselines
if: failure() && steps.check-screenshots.outputs.screenshot_failure > 0 && env.Editable
- name: Push new baselines to pull request branch
uses: EndBug/add-and-commit@v9.1.4
if: failure() && steps.check-screenshots.outputs.screenshot_failure > 0 && env.Editable
with:
message: 'test(visual): Update baselines with new screenshots'
fetch: false
add: 'screenshots/Chromium/baseline/*.png'
default_author: github_actions
- name: Try to fix lint errors
run: npm run fix
if: failure() && env.Editable
- name: Push lint fixes to pull request branch
uses: EndBug/add-and-commit@v9.1.4
if: failure() && env.Editable
with:
message: 'style: Fix lint/formatting errors'
fetch: false
add: . -- ':!screenshots'
default_author: github_actions
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: true
verbose: true