Enhancement/update critical flows with e2e test coverage #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JS Linting | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
paths: | |
- '**.js' | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- '**.js' | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node and npm cache | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install Node dependencies | |
run: npm ci --omit=optional | |
- name: Get updated JS files | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: | | |
**/*.js | |
- name: Run JS linting | |
if: ${{ steps.changed-files.outputs.any_changed == 'true' }} | |
run: ./node_modules/.bin/10up-toolkit lint-js ${{ steps.changed-files.outputs.all_changed_files }} |