Bump js-yaml and markdownlint-cli #341
This file contains hidden or 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: Javascript Presubmit | |
| on: [pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Install npm packages | |
| run: npm install | |
| working-directory: ubg | |
| - name: Lint | |
| # Run ESLint on diffed JS files. Do not run if there are no diffs. | |
| run: git diff --relative --diff-filter=ACM --name-only origin/master HEAD -- . ':!node_modules' | grep -E "(.*)\.(jsx|js)$" | xargs --no-run-if-empty npx eslint | |
| working-directory: ubg |