Files
PrivateBin/.github/workflows/eslint.yml
T
dependabot[bot] 317a0a09af Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 11:36:44 +00:00

42 lines
816 B
YAML

name: ESLint Check
permissions:
contents: read
on:
push:
paths:
- 'js/**/*.js'
- 'js/package-lock.json'
- .github/workflows/eslint.yml
pull_request:
paths:
- 'js/**/*.js'
- 'js/package-lock.json'
- .github/workflows/eslint.yml
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: '20'
- name: Install dependencies
run: |
if [ -f js/package.json ]; then
cd js && npm ci
fi
- name: Run ESLint
run: |
if [ -f js/package.json ]; then
cd js && npx eslint .
else
npx eslint js/
fi