Skip to content

Merge pull request #644 from Automattic/dependabot/npm_and_yarn/lodas… #65

Merge pull request #644 from Automattic/dependabot/npm_and_yarn/lodas…

Merge pull request #644 from Automattic/dependabot/npm_and_yarn/lodas… #65

Workflow file for this run

name: Run JS linting
on:
# Run on all pushes and on all pull requests.
# Prevent the "push" build from running when there are only irrelevant changes.
push:
paths-ignore:
- "**.md"
pull_request:
# Allow manually triggering the workflow.
workflow_dispatch:
jobs:
lint:
name: Run JS linting
# Ubuntu-20.x includes MySQL 8.0, which causes `caching_sha2_password` issues with PHP < 7.4
# https://www.php.net/manual/en/mysqli.requirements.php
# TODO: change to ubuntu-latest when we no longer support PHP < 7.4
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "14"
- name: NPM install
run: npm install
- name: Run eslint on React files
run: npm run lint-scripts
continue-on-error: true
- name: Run styleslint on SCSS files
run: npm run lint-styles