Replaced npm run
in ESLint job w/ npx
cmd to avoid ruff
cmd
#2
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: Lint pushes + PRs | |
on: [push, pull_request] | |
jobs: | |
js-json-md-yaml-lint: | |
name: JavaScript + JSON + Markdown + YAML | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run ESLint | |
run: npx eslint . --cache | |
python-lint: | |
name: Python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v4 | |
- name: Run Ruff | |
uses: chartboost/ruff-action@v1 |