Merge pull request #595 from CDLUC3/drafts-in-api #3157
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: ESLint | |
on: [push, pull_request] | |
jobs: | |
eslint: | |
runs-on: ubuntu-20.04 | |
steps: | |
# Checkout the repo | |
- uses: actions/checkout@v2 | |
# Install Node | |
- uses: actions/setup-node@v2 | |
with: | |
cache: 'yarn' | |
node-version: 16 | |
# Run yarn install for JS dependencies | |
- name: 'Yarn Install' | |
run: yarn install | |
- name: 'Run ESLint' | |
run: yarn run eslint app/javascript/**/*.js --ext .js |